-
Notifications
You must be signed in to change notification settings - Fork 60
Homework #2
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
base: master
Are you sure you want to change the base?
Homework #2
Conversation
| end | ||
|
|
||
| describe "/colorize" do | ||
| it "has a button named 'Colorize'", points: 1 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.
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>?
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.
good point.
spec/features/algorithmia_spec.rb
Outdated
| describe "/colorize" do | ||
| it "displays the colorized image", points: 5 do | ||
| #==================== Begin setup ===========================# | ||
| # create fake Algorithmia objects to speed up tests |
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.
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?
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.
Something in rails_helper perhaps?
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.
Maybe, or maybe just a method at the bottom of the same file so we can easily direct curious students to it?
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.
Was able to move most of the code to methods, but the class double is still causing errors. Needed to leave that in.
Can you run through the two problems and see if you come across any issues?