Use expect instead of assert syntax
This commit is contained in:
parent
07eb561f77
commit
ca0013b9b2
|
|
@ -17,10 +17,10 @@ RSpec.describe Tournament, type: :model do
|
|||
|
||||
describe 'initialization' do
|
||||
it 'should have a code' do
|
||||
assert_equal @tournament.code.length, 6
|
||||
expect(@tournament.code.length).to be(6)
|
||||
end
|
||||
it 'should be public' do
|
||||
assert_equal @tournament.public, true
|
||||
expect(@tournament.public).to be(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue