Sha256: 5209f153013743e782602f10caa3dc85ddce8575a432967787a7e883a8a33183
Contents?: true
Size: 844 Bytes
Versions: 5
Compression:
Stored size: 844 Bytes
Contents
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' require 'shoulda/matchers/active_record/serialize_matcher' require 'shoulda/matchers/active_record/accept_nested_attributes_for_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
Version data entries
5 entries across 5 versions & 2 rubygems