visit('/projects')
visit(comments_path)
visit(post_comments_path(post))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
@user.errors[:email].should include("is invalid") # check for the error format message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Model | |
@user.should have(1).error_on(:username) # Checks whether there is an error in username | |
@user.errors[:username].should include("can't be blank") # check for the error message | |
#Rendering | |
response.should render_template(:index) | |
#Redirecting | |
response.should redirect_to(movies_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom prompt. Based on <https://gist.github.com/4652812> by Zachary Scott | |
IRB.conf[:PROMPT][:PERSONAL] = IRB.conf[:PROMPT][:RVM].merge( | |
:PROMPT_I => "\n#{RUBY_VERSION} >> ", | |
:PROMPT_S => "%l >> ", | |
:PROMPT_C => "? >> ", | |
:RETURN => "RETURNS> %s\n\n" | |
) | |
IRB.conf[:PROMPT_MODE] = :PERSONAL | |
Big thank you to Lynn Root for starting this document! Email: Lynn Root
- Lynn Root's Blog with her experience, how she prepared, and lists of practice problems and resources.
- Stephanie Shupe's presentation White Boarding: Interview Tips
##mailinglists
##list of speakers