From ca0013b9b214b49a1da54ed72526b86c3a3dfde4 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 13 Nov 2018 23:02:29 +0100 Subject: [PATCH] Use expect instead of assert syntax --- spec/models/tournament_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/tournament_spec.rb b/spec/models/tournament_spec.rb index 814ce96..5948b90 100644 --- a/spec/models/tournament_spec.rb +++ b/spec/models/tournament_spec.rb @@ -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