-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hafiz Rps version #2134
base: main
Are you sure you want to change the base?
Hafiz Rps version #2134
Conversation
There was a problem hiding this 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 | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 | ||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
No description provided.