Permalink
Browse files

Configuring mongo

  • Loading branch information...
1 parent 364d99b commit 02f1c956dd2f3f59685f6a373ed473b1623474b5 @benhutton committed Jan 22, 2012
Showing with 14 additions and 0 deletions.
  1. +4 −0 config/application.rb
  2. +10 −0 config/mongoid.yml
View
@@ -15,6 +15,10 @@
# Bundler.require(:default, :assets, Rails.env)
end
+ ENV["RACK_ENV"] = Rails.env # had to explicity state the test environment (or cucumber env.)
+ require 'mongoid'
+ Mongoid.load!(File.expand_path(File.dirname(__FILE__) + '/mongoid.yml'))
+
module ResourceLibraryTest
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
View
@@ -0,0 +1,10 @@
+development:
+ host: localhost
+ database: resource_library_test_development
+
+test:
+ host: localhost
+ database: resource_library_test_test
+
+production:
+ uri: <%= ENV['MONGOHQ_URL'] %>

0 comments on commit 02f1c95

Please sign in to comment.