Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created April 29, 2012 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/2551863 to your computer and use it in GitHub Desktop.
Save owainlewis/2551863 to your computer and use it in GitHub Desktop.
Rails 3 with Mongoid and Rspec

Generating the app

rails new example_app --skip-activerecord \
                        --skip-testunit

Gems

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'sqlite3'

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

# Core Gems

gem 'jquery-rails'
gem "rspec-rails", ">= 2.9.0.rc2", :group => [:development, :test]
gem "bson_ext", ">= 1.6.1"
gem "mongoid", ">= 2.4.7"
gem "factory_girl_rails", ">= 3.0.0", :group => [:development, :test]

Setup

rails g mongoid:config
rails g rspec:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment