expand rspec tests
This commit is contained in:
parent
3c264f6225
commit
acd18721aa
4 changed files with 71 additions and 1 deletions
|
|
@ -8,4 +8,9 @@ describe Supplier do
|
|||
supplier2.should_not be_valid
|
||||
end
|
||||
|
||||
it 'has valid articles' do
|
||||
supplier = FactoryGirl.create :supplier, article_count: true
|
||||
supplier.articles.all.should be_valid
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue