mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
update cucumber and refactor some of the stories
inspired by the railscasts about cucumber. Also fix a problem with ZenTest on case sensitive platforms
This commit is contained in:
parent
bdddac5020
commit
2073f84cd8
11 changed files with 90 additions and 128 deletions
17
features/step_definitions/signup_steps.rb
Normal file
17
features/step_definitions/signup_steps.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Given /^public signups are turned (.*)$/ do |state|
|
||||
case state
|
||||
when 'on'
|
||||
SITE_CONFIG['open_signups'] = true
|
||||
when 'off'
|
||||
SITE_CONFIG['open_signups'] = false
|
||||
else
|
||||
raise "public signups should be either 'on' or 'off'"
|
||||
end
|
||||
end
|
||||
|
||||
When /^I submit the signup form with username "([^\"]*)", password "([^\"]*)" and confirm with "([^\"]*)"$/ do |username, password, confirm|
|
||||
fill_in 'Desired login', :with => username
|
||||
fill_in 'Choose password', :with => password
|
||||
fill_in 'Confirm password', :with => confirm
|
||||
click_button
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue