expand rspec tests

This commit is contained in:
wvengen 2013-07-15 00:17:07 +02:00
parent 3c264f6225
commit acd18721aa
4 changed files with 71 additions and 1 deletions

View file

@ -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