Commit 1d4418bc authored by Phil Hughes's avatar Phil Hughes Committed by Robert Speicher

Fixed failing ssh key tests

parent 1efe1054
...@@ -20,7 +20,7 @@ class Profiles::KeysController < Profiles::ApplicationController ...@@ -20,7 +20,7 @@ class Profiles::KeysController < Profiles::ApplicationController
if @key.save if @key.save
redirect_to profile_key_path(@key) redirect_to profile_key_path(@key)
else else
redirect_to profile_keys_path, flash: {key: @key} redirect_to profile_keys_path, flash: { key: @key }
end end
end end
......
...@@ -9,7 +9,7 @@ Feature: Profile SSH Keys ...@@ -9,7 +9,7 @@ Feature: Profile SSH Keys
Then I should see my ssh keys Then I should see my ssh keys
Scenario: Add new ssh key Scenario: Add new ssh key
Given I click link "Add new" Given I should see new ssh key form
And I submit new ssh key "Laptop" And I submit new ssh key "Laptop"
Then I should see new ssh key "Laptop" Then I should see new ssh key "Laptop"
......
...@@ -7,8 +7,8 @@ class Spinach::Features::ProfileSshKeys < Spinach::FeatureSteps ...@@ -7,8 +7,8 @@ class Spinach::Features::ProfileSshKeys < Spinach::FeatureSteps
end end
end end
step 'I click link "Add new"' do step 'I should see new ssh key form' do
click_link "Add SSH Key" expect(page).to have_content("Add an SSH key")
end end
step 'I submit new ssh key "Laptop"' do step 'I submit new ssh key "Laptop"' do
......
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