1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Added "should accept_nested_attributes_for" example on README

This commit is contained in:
Markus Schwed 2013-09-25 09:34:34 +02:00 committed by Elliot Winkler
parent 676ce88d39
commit c9725ca442

View file

@ -16,6 +16,7 @@ Matchers to test associations:
describe Post do describe Post do
it { should belong_to(:user) } it { should belong_to(:user) }
it { should have_many(:tags).through(:taggings) } it { should have_many(:tags).through(:taggings) }
it { should accept_nested_attributes_for(:comments) }
end end
describe User do describe User do