saasbook/hw-sinatra-saas-wordguesser

Incorrect Spec?

Opened this issue · 0 comments

Hi guys!

In hangperson_game_spec.rb line 45

it 'returns true' do
   expect(@valid).not_to be false
end

Which is wrong because the word is 'garply' and the guess is 'z': @valid = @game.guess('z')?

Shouldn't it be the other way around?

it 'returns false' do
   expect(@valid).not_to be true
end