Permalink
Browse files

Revert "Revert "Use a separate user collection""

This reverts commit 76d6d65.
  • Loading branch information...
1 parent 45e4bac commit c5763c0b3f53116031c981753c5a6a2db91badd0 @jamiecobbett jamiecobbett committed Aug 20, 2012
Showing with 12 additions and 3 deletions.
  1. +1 −1 Gemfile
  2. +2 −2 Gemfile.lock
  3. +1 −0 config/initializers/user_collection_name.rb
  4. +8 −0 test/unit/user_test.rb
View
@@ -33,7 +33,7 @@ gem 'lograge'
if ENV['CONTENT_MODELS_DEV']
gem "govuk_content_models", path: '../govuk_content_models'
else
- gem "govuk_content_models", "1.2.0"
+ gem "govuk_content_models", "1.3.0"
end
if ENV['BUNDLE_DEV']
View
@@ -118,7 +118,7 @@ GEM
json
gherkin (2.11.1)
json (>= 1.4.6)
- govuk_content_models (1.2.0)
+ govuk_content_models (1.3.0)
bson_ext
differ
gds-api-adapters
@@ -302,7 +302,7 @@ DEPENDENCIES
gds-sso (~> 1.2.0)
gds-warmup-controller (= 0.1.0)
gelf
- govuk_content_models (= 1.2.0)
+ govuk_content_models (= 1.3.0)
launchy
lograge
minitest
@@ -0,0 +1 @@
+USER_COLLECTION_NAME = "panopticon_users"
View
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class UserTest < ActiveSupport::TestCase
+
+ should "use a custom collection name for users" do
+ assert_equal "panopticon_users", User.collection_name
+ end
+end

0 comments on commit c5763c0

Please sign in to comment.