Skip to content

Conversation

@Insti
Copy link
Contributor

@Insti Insti commented Jun 14, 2018

In order to make the dashboard testable it's useful for it to be its own class.

Create a /lib directory.
Move the guts of the old dashboard file into a Dashboard class.
Move the Game class into /lib.
Create a new dashboard.rb that performs identically to the old one but
now uses the Dashboard class from /lib.

In order to make the dashboard testable it's useful for it to be its own
class.

Create a /lib directory.
Move the guts of the old dashboard file into a Dashboard class.
Move the Game class into /lib.
Create a new dashboard.rb that performs identically to the old one but
now uses the Dashboard class from /lib.
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.

1 participant