Commit 15f62fcc27235b3c8012c80f0517ecf5c27aa205
1 parent
afc9d548
Exists in
master
and in
4 other branches
Fix profile emails with new key route
Showing
4 changed files
with
5 additions
and
5 deletions
Show diff stats
app/views/notify/new_ssh_key_email.html.haml
app/views/notify/new_ssh_key_email.text.erb
@@ -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: | ||
4 | 4 | ||
5 | title.................. <%= @key.title %> | 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 "Users Security" do | @@ -10,8 +10,8 @@ describe "Users Security" do | ||
10 | it { new_user_session_path.should_not be_404_for :visitor } | 10 | it { new_user_session_path.should_not be_404_for :visitor } |
11 | end | 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 | it { should be_allowed_for @u1 } | 16 | it { should be_allowed_for @u1 } |
17 | it { should be_allowed_for :admin } | 17 | it { should be_allowed_for :admin } |
spec/mailers/notify_spec.rb
@@ -86,7 +86,7 @@ describe Notify do | @@ -86,7 +86,7 @@ describe Notify do | ||
86 | end | 86 | end |
87 | 87 | ||
88 | it 'includes a link to ssh keys page' do | 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 | end | 90 | end |
91 | end | 91 | end |
92 | 92 |