diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 62acc2b9f..8d6f9abd5 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -12,7 +12,7 @@ <% if CurrentUser.user.is_gold? %>

<%= link_to "Request a name change", new_user_name_change_request_path %>

<% else %> -

You must <%= link_to "upgrade your account", upgrade_information_users_path %> to request a name change

+

You must <%= link_to "upgrade your account", new_user_upgrade_path %> to request a name change

<% end %> diff --git a/test/unit/current_user_test.rb b/test/unit/current_user_test.rb index 796b96039..eee73537d 100644 --- a/test/unit/current_user_test.rb +++ b/test/unit/current_user_test.rb @@ -12,13 +12,17 @@ class CurrentUserTest < ActiveSupport::TestCase context ".safe_mode?" do should "return true if the host contains the string host" do - req = mock(:host => "safebooru") + req = mock() + req.stubs(:host).returns("safebooru") + req.stubs(:params).returns({}) CurrentUser.set_safe_mode(req) assert_equal(true, CurrentUser.safe_mode?) end should "return false if the host does not contain the string host" do - req = mock(:host => "danbooru") + req = mock() + req.stubs(:host).returns("danbooru") + req.stubs(:params).returns({}) CurrentUser.set_safe_mode(req) assert_equal(false, CurrentUser.safe_mode?) end