Skip to content

Conversation

@arjunvenkat
Copy link
Contributor

  • adds the algorithmia gem
  • updates readme with 2 homework problems
  • adds specs for 2 homework problems

Can you run through the two problems and see if you come across any issues?

end

describe "/colorize" do
it "has a button named 'Colorize'", points: 1 do
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about "has a 'Colorize' button"? Do you think there's any danger of "named 'Colorize'" making some students wonder if they should add a name="" attribute to the <button>?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point.

describe "/colorize" do
it "displays the colorized image", points: 5 do
#==================== Begin setup ===========================#
# create fake Algorithmia objects to speed up tests
Copy link
Contributor

@raghubetina raghubetina Jan 30, 2018

Choose a reason for hiding this comment

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

Perhaps if there's bespoke/non-generally applicable setup that we don't intend the students to read/familiarize themselves with, we should think about extracting it to a well-named method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something in rails_helper perhaps?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe, or maybe just a method at the bottom of the same file so we can easily direct curious students to it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was able to move most of the code to methods, but the class double is still causing errors. Needed to leave that in.

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.

3 participants