mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 17:34:22 +01:00
add cucumber scenarios for new preferences
This commit is contained in:
parent
555311b681
commit
40a7cc2d3a
9 changed files with 70 additions and 11 deletions
15
features/step_definitions/preferences_steps.rb
Normal file
15
features/step_definitions/preferences_steps.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
When /^I edit my last name to "([^"]*)"$/ do |last_name|
|
||||
fill_in "user[last_name]", :with => last_name
|
||||
click_button "prefs_submit"
|
||||
end
|
||||
|
||||
When /^I set the password and confirmation to "([^"]*)"$/ do |new_password|
|
||||
When "I set the password to \"#{new_password}\" and confirmation to \"#{new_password}\""
|
||||
end
|
||||
|
||||
When /^I set the password to "([^"]*)" and confirmation to "([^"]*)"$/ do |new_password, new_password_confirmation|
|
||||
fill_in "user[password]", :with => new_password
|
||||
fill_in "user[password_confirmation]", :with => new_password_confirmation
|
||||
click_button "prefs_submit"
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue