Fixed failing tests

This commit is contained in:
Phil Hughes 2016-03-01 15:58:00 +00:00
parent f48f51ac7e
commit d5f145bf8b
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
%p
Your private token is used to access application resources without authentication.
.col-lg-9
= form_for @user, url: reset_private_token_profile_path, method: :put do |f|
= form_for @user, url: reset_private_token_profile_path, method: :put, html: {class: "private-token"} do |f|
%p.cgray
- if current_user.private_token
= label_tag "token", "Private token", class: "label-light"

View file

@ -99,9 +99,9 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
step 'I reset my token' do
page.within '.update-token' do
page.within '.private-token' do
@old_token = @user.private_token
click_button "Reset"
click_button "Reset private token"
end
end