##mailinglists
##list of speakers
##mailinglists
##list of speakers
Big thank you to Lynn Root for starting this document! Email: Lynn Root
# 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 | |
#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) |
#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 |