Use expect instead of assert syntax

This commit is contained in:
Thor77 2018-11-13 23:02:29 +01:00
parent 07eb561f77
commit ca0013b9b2
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 2 additions and 2 deletions

View File

@ -17,10 +17,10 @@ RSpec.describe Tournament, type: :model do
describe 'initialization' do describe 'initialization' do
it 'should have a code' do it 'should have a code' do
assert_equal @tournament.code.length, 6 expect(@tournament.code.length).to be(6)
end end
it 'should be public' do it 'should be public' do
assert_equal @tournament.public, true expect(@tournament.public).to be(true)
end end
end end