mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
24 lines
708 B
Ruby
24 lines
708 B
Ruby
require 'shoulda/matchers/active_record/association_matcher'
|
|
require 'shoulda/matchers/active_record/have_db_column_matcher'
|
|
require 'shoulda/matchers/active_record/have_db_index_matcher'
|
|
require 'shoulda/matchers/active_record/have_readonly_attribute_matcher'
|
|
|
|
|
|
module Shoulda
|
|
module Matchers
|
|
# = Matchers for your active record models
|
|
#
|
|
# These matchers will test the associations for your
|
|
# ActiveRecord models.
|
|
#
|
|
# describe User do
|
|
# it { should have_one(:profile) }
|
|
# it { should have_many(:dogs) }
|
|
# it { should have_many(:messes).through(:dogs) }
|
|
# it { should belong_to(:lover) }
|
|
# end
|
|
#
|
|
module ActiveRecord
|
|
end
|
|
end
|
|
end
|