Commit 9d0f27d3f6497ad3c28fb7207c8bc4d75f477db8
1 parent
25eb8541
Exists in
master
and in
22 other branches
stoa-plugin-tests: fixes authenticate errors
Authenticate only searches among activated users.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/stoa/test/functional/stoa_plugin_controller_test.rb
| ... | ... | @@ -6,7 +6,7 @@ class StoaPluginController; def rescue_action(e) raise e end; end |
| 6 | 6 | |
| 7 | 7 | class StoaPluginControllerTest < ActionController::TestCase |
| 8 | 8 | |
| 9 | - SALT=YAML::load(File.open(StoaPlugin.root_path + '/config.yml'))['salt'] | |
| 9 | + SALT=YAML::load(File.open(StoaPlugin.root_path + 'config.yml'))['salt'] | |
| 10 | 10 | |
| 11 | 11 | def setup |
| 12 | 12 | @controller = StoaPluginController.new |
| ... | ... | @@ -18,6 +18,7 @@ class StoaPluginControllerTest < ActionController::TestCase |
| 18 | 18 | env.enable('skip_new_user_email_confirmation') |
| 19 | 19 | env.save! |
| 20 | 20 | @user = create_user_full('real_user', {:password => '123456', :password_confirmation => '123456'}, {:usp_id => 9999999}) |
| 21 | + @user.activate | |
| 21 | 22 | end |
| 22 | 23 | |
| 23 | 24 | attr_accessor :user | ... | ... |