-
Notifications
You must be signed in to change notification settings - Fork 250
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
First Commit #258
base: main
Are you sure you want to change the base?
First Commit #258
Conversation
<input type="submit" value="Submit"> | ||
</li> | ||
</ul> | ||
</form> |
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.
nicely formatted html (with the indentations and stuff)
def name | ||
return name | ||
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.
single responsibility principle seems good here
expect( player.name ).to eq "Ronan" | ||
end | ||
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.
test is easy to understand
get '/play' do | ||
@player1 = $player1.name | ||
@player2 = $player1.name | ||
erb :play |
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.
does :play need to be in brackets?
@@ -1,8 +1,28 @@ | |||
require 'sinatra/base' | |||
require 'sinatra/reloader' | |||
|
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.
need a require './lib/player'
end | ||
get '/' do | ||
"hey" | ||
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.
may need to introduce erb (:index) here so that the user can move forward onto next page
Ronan Hughes Code Review