diff --git a/app/views/notify/new_ssh_key_email.html.haml b/app/views/notify/new_ssh_key_email.html.haml index eff197c..deb0822 100644 --- a/app/views/notify/new_ssh_key_email.html.haml +++ b/app/views/notify/new_ssh_key_email.html.haml @@ -7,4 +7,4 @@ %code= @key.title %p 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 diff --git a/app/views/notify/new_ssh_key_email.text.erb b/app/views/notify/new_ssh_key_email.text.erb index 2b1f8a0..5f0080c 100644 --- a/app/views/notify/new_ssh_key_email.text.erb +++ b/app/views/notify/new_ssh_key_email.text.erb @@ -4,4 +4,4 @@ A new public key was added to your account: 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 %> diff --git a/spec/features/security/profile_access_spec.rb b/spec/features/security/profile_access_spec.rb index f854f3f..52130b3 100644 --- a/spec/features/security/profile_access_spec.rb +++ b/spec/features/security/profile_access_spec.rb @@ -10,8 +10,8 @@ describe "Users Security" do it { new_user_session_path.should_not be_404_for :visitor } end - describe "GET /keys" do - subject { keys_path } + describe "GET /profile/keys" do + subject { profile_keys_path } it { should be_allowed_for @u1 } it { should be_allowed_for :admin } diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 7290e2b..e7e8bc5 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -86,7 +86,7 @@ describe Notify do end it 'includes a link to ssh keys page' do - should have_body_text /#{keys_path}/ + should have_body_text /#{profile_keys_path}/ end end -- libgit2 0.21.2