Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given /I have added "(.*)" with rating "(.*)"/ do |title, rating|
- Given %Q{I am on the Create New Movie page}
- When %Q{I fill in "Title" with "#{title}"}
- And %Q{I select "#{rating}" from "Rating"}
- And %Q{I press "Save Changes"}
- end
- Then /I should see "(.*)" before "(.*)" on (.*)/ do |string1, string2, path|
- Given %Q{I am on #{path}}
- regexp = /#{string1}.*#{string2}/m # /m means match across newlines
- page.body.should =~ regexp
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement