2010-12-15 22:34:19 +00:00
|
|
|
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'
|
2011-11-15 22:11:41 +00:00
|
|
|
require 'shoulda/matchers/active_record/serialize_matcher'
|
2012-03-07 20:55:19 +00:00
|
|
|
require 'shoulda/matchers/active_record/query_the_database_matcher'
|
2010-12-15 22:34:19 +00:00
|
|
|
|
|
|
|
module Shoulda
|
|
|
|
module Matchers
|
|
|
|
# = Matchers for your active record models
|
|
|
|
#
|
2011-05-06 11:51:12 +00:00
|
|
|
# These matchers will test the associations for your
|
2010-12-15 22:34:19 +00:00
|
|
|
# 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
|