[ARVADOS] updated: 9b27fdf604f57fffed466c0899fd0dcf0e4f8768

git at public.curoverse.com git at public.curoverse.com
Thu Jun 19 19:43:04 EDT 2014


Summary of changes:
 apps/workbench/config/application.default.yml              | 3 +--
 apps/workbench/test/functional/projects_controller_test.rb | 9 ---------
 2 files changed, 1 insertion(+), 11 deletions(-)

       via  9b27fdf604f57fffed466c0899fd0dcf0e4f8768 (commit)
      from  f4189a0c74c5cf3bfe31f8ed83d845c21611653e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9b27fdf604f57fffed466c0899fd0dcf0e4f8768
Author: radhika <radhika at curoverse.com>
Date:   Thu Jun 19 19:41:17 2014 -0400

    2659: do not configure anonymous user token in tests to ensure existing test behavior is not impacted. additional tests to be added by setting anonymous token just in those tests.

diff --git a/apps/workbench/config/application.default.yml b/apps/workbench/config/application.default.yml
index 6711d52..cf42410 100644
--- a/apps/workbench/config/application.default.yml
+++ b/apps/workbench/config/application.default.yml
@@ -57,8 +57,7 @@ test:
   arvados_insecure_https: true
 
   site_name: Workbench:test
-
-  anonymous_user_token: 4kg6k6lzmp9kj4cpkcoxie964cmvjahbt4fod9zru44k4jqdmi
+  anonymous_user_token: false
 
 common:
   assets.js_compressor: false
diff --git a/apps/workbench/test/functional/projects_controller_test.rb b/apps/workbench/test/functional/projects_controller_test.rb
index 840fd0f..d83a40a 100644
--- a/apps/workbench/test/functional/projects_controller_test.rb
+++ b/apps/workbench/test/functional/projects_controller_test.rb
@@ -1,16 +1,7 @@
 require 'test_helper'
 
 class ProjectsControllerTest < ActionController::TestCase
-  setup do
-    @anonymous_token = Rails.configuration.anonymous_user_token
-  end
-
-  teardown do
-    Rails.configuration.anonymous_user_token = @anonymous_token
-  end
-
   test "inactive user is asked to sign user agreements on front page when anonymous user token is not configured" do
-    Rails.configuration.anonymous_user_token = false
     get :index, {}, session_for(:inactive)
     assert_response :success
     assert_not_empty assigns(:required_user_agreements),

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list