Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
- field_value = field_labeled(field).value
- if field_value.respond_to? :should
- field_value.should =~ /#{value}/
- else
- assert_match(/#{value}/, field_value)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement