Commit d5f145bf authored by Phil Hughes's avatar Phil Hughes

Fixed failing tests

parent f48f51ac
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%p %p
Your private token is used to access application resources without authentication. Your private token is used to access application resources without authentication.
.col-lg-9 .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 %p.cgray
- if current_user.private_token - if current_user.private_token
= label_tag "token", "Private token", class: "label-light" = label_tag "token", "Private token", class: "label-light"
......
...@@ -99,9 +99,9 @@ class Spinach::Features::Profile < Spinach::FeatureSteps ...@@ -99,9 +99,9 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end end
step 'I reset my token' do step 'I reset my token' do
page.within '.update-token' do page.within '.private-token' do
@old_token = @user.private_token @old_token = @user.private_token
click_button "Reset" click_button "Reset private token"
end end
end end
......
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