summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvelyn <evy_mcr@outlook.com>2015-09-21 22:56:31 -0500
committerEvelyn <evy_mcr@outlook.com>2015-09-21 22:56:31 -0500
commitaf140de5dd27b93b8cd58dd201fc4c0b1d5a23ec (patch)
tree20712278becbaa7bde1e06ec407f27d1f5c7679e
parentb9aae16edf42d8fed5bc4df15698a1eed1cc9e3d (diff)
test users_controller_test
-rw-r--r--config/locales/en/users.en.yml16
-rw-r--r--test/functional/users_controller_test.rb1
2 files changed, 9 insertions, 8 deletions
diff --git a/config/locales/en/users.en.yml b/config/locales/en/users.en.yml
index 65014bb..e2a880c 100644
--- a/config/locales/en/users.en.yml
+++ b/config/locales/en/users.en.yml
@@ -55,14 +55,14 @@ en:
tickets: "Create and check support tickets."
email: "Modify email settings."
account: "Destroy your account."
- actions:
- toggle_user: "Enable / Disable User"
- enable_user: "Enable User"
- disable_user: "Disable User"
- confirm_user_deactivation: "Are you sure you want to deactive user with username '%{username}'?"
- confirm_user_activation: "Are you sure you want to activate user with username '%{username}'?"
- user_disabled_message: "User with username '%{username}' has been disabled."
- user_enabled_message: "User with username '%{username}' has been enabled."
+ actions:
+ toggle_user: "Enable / Disable User"
+ enable_user: "Enable User"
+ disable_user: "Disable User"
+ confirm_user_deactivation: "Are you sure you want to deactive user with username '%{username}'?"
+ confirm_user_activation: "Are you sure you want to activate user with username '%{username}'?"
+ user_disabled_message: "User with username '%{username}' has been disabled."
+ user_enabled_message: "User with username '%{username}' has been enabled."
#
# rails
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 7d1745c..70f483e 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -158,6 +158,7 @@ class UsersControllerTest < ActionController::TestCase
login :is_admin? => true
+ @request.env['HTTP_REFERER'] = 'http://test.com/sessions/new'
post :deactivate, :id => user.id
assert !assigns(:user).enabled?
end