Skip to content

Instantly share code, notes, and snippets.

@mikebannister
Created June 29, 2011 15:26
Show Gist options
  • Save mikebannister/1054085 to your computer and use it in GitHub Desktop.
Save mikebannister/1054085 to your computer and use it in GitHub Desktop.
rvm gemset create moof
rvm gemset use moof
rails new moof
cd moof
emacs Gemfile <- add rspec
bundle
rails g rspec:install
rake -T
<excerpt>
rake secret # Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions).
rake spec # Run all specs in spec directory (excluding plugin specs)
rake spec:controllers # Run the code examples in spec/controllers
rake spec:helpers # Run the code examples in spec/helpers
rake spec:lib # Run the code examples in spec/lib
rake spec:mailers # Run the code examples in spec/mailers
rake spec:models # Run the code examples in spec/models
rake spec:rcov # Run all specs with rcov
rake spec:requests # Run the code examples in spec/requests
rake spec:routing # Run the code examples in spec/routing
rake spec:views # Run the code examples in spec/views
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment