save_and_open_page
have_button(locator)
#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) |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>TestConsoleTheme</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
/* | |
in case you get errors like this | |
ruby:1: Invalid char `\x7F' in expression | |
ruby:1: Invalid char `\x01' in expression | |
ruby:1: Invalid char `\x01' in expression | |
ruby:1: Invalid char `\x01' in expression | |
ruby:1:in `<main>': uninitialized constant ELF (NameError) |
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This is the source for the scripts discussed in https://robots.thoughtbot.com/improving-user-experience-with-shell-scripts
Both scripts are in the bin/
directory of the repo that contains all the markdown documents for blog posts.
Users run bin/server
and everything is automatically set up for them to view a local preview of the blog.
bin/server-setup
is a dependency of bin/server
and is never run directly by users.
Maitre-d is the name of the "blog engine" discussed in the article.