My Gemfile:

source ''

gem 'rails'

gem 'haml-rails'
gem 'uuidtools'
gem 'dynamic_form'
gem 'pg'

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'

gem 'jquery-rails'

group :test do
  # Pretty printed test output
  gem 'shoulda'
  gem 'factory_girl_rails'
  gem 'spork'
  gem 'guard-rspec'
  gem 'guard-spork'
  gem 'simplecov'

group :development do
  gem 'mongrel', '1.2.0.pre2'

group :test, :development do
  gem 'rspec-rails'
  gem 'jasmine'
  gem 'faker'

Setting up

After a bundle update, you’ll need to take a few more steps to get things up and running. First off rspec:

rails g rspec:install

This will generate your .rspec file and spec/spec_helper.rb. I like to add the following config options to spec_helper inside the Rspec.configure block:

config.filter_run :focus => true
config.run_all_when_everything_filtered = true

Jasmine is the same:

rails g jasmine:install

You can run rails g jasmine:examples for some example specs.

Leave a Reply