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