use expect instead of should in specs

This commit is contained in:
wvengen 2013-07-24 22:46:25 +02:00
parent 0be3955cd7
commit d602b7cd0d
6 changed files with 60 additions and 60 deletions

View file

@ -5,12 +5,12 @@ describe Supplier do
it 'has a unique name' do
supplier2 = FactoryGirl.build :supplier, name: supplier.name
supplier2.should_not be_valid
expect(supplier2).to be_invalid
end
it 'has valid articles' do
supplier = FactoryGirl.create :supplier, article_count: true
supplier.articles.all.each {|a| a.should be_valid }
supplier.articles.all.each {|a| expect(a).to be_valid }
end
end