Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Configuring mongo

  • Loading branch information...
commit 02f1c956dd2f3f59685f6a373ed473b1623474b5 1 parent 364d99b
@benhutton authored
Showing with 14 additions and 0 deletions.
  1. +4 −0 config/application.rb
  2. +10 −0 config/mongoid.yml
View
4 config/application.rb
@@ -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
10 config/mongoid.yml
@@ -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'] %>
Please sign in to comment.
Something went wrong with that request. Please try again.