Commit 15f62fcc27235b3c8012c80f0517ecf5c27aa205

Authored by Dmitriy Zaporozhets
1 parent afc9d548

Fix profile emails with new key route

app/views/notify/new_ssh_key_email.html.haml
... ... @@ -7,4 +7,4 @@
7 7 %code= @key.title
8 8 %p
9 9 If this key was added in error, you can remove it here:
10   - = link_to "SSH Keys", keys_url
  10 + = link_to "SSH Keys", profile_keys_url
... ...
app/views/notify/new_ssh_key_email.text.erb
... ... @@ -4,4 +4,4 @@ A new public key was added to your account:
4 4  
5 5 title.................. <%= @key.title %>
6 6  
7   -If this key was added in error, you can remove it here: <%= keys_url %>
  7 +If this key was added in error, you can remove it here: <%= profile_keys_url %>
... ...
spec/features/security/profile_access_spec.rb
... ... @@ -10,8 +10,8 @@ describe &quot;Users Security&quot; do
10 10 it { new_user_session_path.should_not be_404_for :visitor }
11 11 end
12 12  
13   - describe "GET /keys" do
14   - subject { keys_path }
  13 + describe "GET /profile/keys" do
  14 + subject { profile_keys_path }
15 15  
16 16 it { should be_allowed_for @u1 }
17 17 it { should be_allowed_for :admin }
... ...
spec/mailers/notify_spec.rb
... ... @@ -86,7 +86,7 @@ describe Notify do
86 86 end
87 87  
88 88 it 'includes a link to ssh keys page' do
89   - should have_body_text /#{keys_path}/
  89 + should have_body_text /#{profile_keys_path}/
90 90 end
91 91 end
92 92  
... ...