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:
parent
676ce88d39
commit
c9725ca442
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue