Permalink
Browse files

Use a separate user collection

This is so Panopticon and Publisher don't overwrite each other's user
data. This is a problem when Signonotron2 starts giving different apps
different user permissions data.
  • Loading branch information...
1 parent ef3c90d commit b8dc1f4d56a314766e7055b414e0f8e3558a0e0f @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 b8dc1f4

Please sign in to comment.