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