use expect instead of should in specs
This commit is contained in:
parent
0be3955cd7
commit
d602b7cd0d
6 changed files with 60 additions and 60 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue