Created
October 2, 2012 02:03
-
-
Save ruprict/3815755 to your computer and use it in GitHub Desktop.
Loccasions updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rails', '3.2.3' | |
gem 'devise' | |
-gem 'mongoid' | |
+gem 'mongoid', '~> 3.0.0' | |
gem 'mongoid_spacial' | |
gem 'haml' | |
-gem 'bson_ext' | |
+gem 'bson_ext', '~> 1.6.1' | |
gem "rails-backbone" | |
# Bundle edge Rails instead: | |
@@ -28,8 +28,8 @@ end | |
gem 'jquery-rails' | |
group :test, :development do | |
-gem 'rspec-rails', '~> 2.6.1' | |
-gem 'mongoid-rspec', '~> 1.4.4' | |
+gem 'rspec-rails' | |
+gem 'mongoid-rspec', '~> 1.5.4' | |
gem 'capybara', '~> 1.0.1' | |
gem 'factory_girl_rails', '~> 1.1.0' | |
gem 'database_cleaner', '~> 0.6.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
just run rails g mongoid:config to recreate after you change the Gemfile and run bundle update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'capybara/rspec' | |
# Requires supporting ruby files with custom matchers and macros, etc, | |
# in spec/support/ and its subdirectories. | |
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} | |
RSpec.configure do |config| | |
# == Mock Framework | |
# | |
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: | |
# | |
# config.mock_with :mocha | |
# config.mock_with :flexmock | |
# config.mock_with :rr | |
config.mock_with :rspec | |
config.include Mongoid::Matchers | |
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures | |
# config.fixture_path = "#{::Rails.root}/spec/fixtures" | |
# If you're not using ActiveRecord, or you'd prefer not to run each of your | |
# examples within a transaction, remove the following line or assign false | |
# instead of true. | |
# config.use_transactional_fixtures = true | |
# Clean up the database | |
require 'database_cleaner' | |
config.before(:suite) do | |
DatabaseCleaner[:mongoid].strategy = :truncation | |
end | |
config.before(:each) do | |
#DatabaseCleaner.clean | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment