Commit 15f62fcc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix profile emails with new key route

parent afc9d548
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
%code= @key.title %code= @key.title
%p %p
If this key was added in error, you can remove it here: If this key was added in error, you can remove it here:
= link_to "SSH Keys", keys_url = link_to "SSH Keys", profile_keys_url
...@@ -4,4 +4,4 @@ A new public key was added to your account: ...@@ -4,4 +4,4 @@ A new public key was added to your account:
title.................. <%= @key.title %> title.................. <%= @key.title %>
If this key was added in error, you can remove it here: <%= keys_url %> If this key was added in error, you can remove it here: <%= profile_keys_url %>
...@@ -10,8 +10,8 @@ describe "Users Security" do ...@@ -10,8 +10,8 @@ describe "Users Security" do
it { new_user_session_path.should_not be_404_for :visitor } it { new_user_session_path.should_not be_404_for :visitor }
end end
describe "GET /keys" do describe "GET /profile/keys" do
subject { keys_path } subject { profile_keys_path }
it { should be_allowed_for @u1 } it { should be_allowed_for @u1 }
it { should be_allowed_for :admin } it { should be_allowed_for :admin }
......
...@@ -86,7 +86,7 @@ describe Notify do ...@@ -86,7 +86,7 @@ describe Notify do
end end
it 'includes a link to ssh keys page' do it 'includes a link to ssh keys page' do
should have_body_text /#{keys_path}/ should have_body_text /#{profile_keys_path}/
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment