mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 17:14:07 +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
|
|
@ -98,6 +98,14 @@ Then /^I should not see "([^\"]*)"$/ do |text|
|
|||
response.should_not contain(text)
|
||||
end
|
||||
|
||||
Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
|
||||
field_labeled(field).value.should =~ /#{value}/
|
||||
end
|
||||
|
||||
Then /^the "([^\"]*)" field should not contain "([^\"]*)"$/ do |field, value|
|
||||
field_labeled(field).value.should_not =~ /#{value}/
|
||||
end
|
||||
|
||||
Then /^the "([^\"]*)" checkbox should be checked$/ do |label|
|
||||
field_labeled(label).should be_checked
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue