my step in the cucumber file:
And the “website” class should have “www.happyhour.com”
the step definition:
Then /^the “([^"])" class should have "([^"])”$/ do |link, url|
response.should have_selector(“.#{link}”) do |site|
site.inner_html.include?(url).should be_true
end
end
it’s doesn’t look good and would like to hear suggestion for improving
it.
Thanks!