Skip to content

Conversation

@Hafizalimi7
Copy link

No description provided.

Copy link

@Jenniered Jenniered left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set up, file base and logic look like a good start to the challenge. Added some comments for suggested additions.

@object1 = params[:object1]#saving name
erb(:play2)
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use the get/post redirect?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And sessions?

lib/game.rb Outdated
return @computer
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear logic to show a win for the player

visit('/start')
expect(page).to have_content 'Select Rock, Paper Or Scissor ?'
end
# scenario 'shows what computer has picked' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you're testing the content you see on the page is as it should be. Do you have a features test for submitting the player name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants