Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created September 28, 2011 17:31
Show Gist options
  • Save HeroicEric/1248587 to your computer and use it in GitHub Desktop.
Save HeroicEric/1248587 to your computer and use it in GitHub Desktop.
When /^I press "Get results" for keyword "(.*)" for domain "(.*)"$/ do |keyword_term, domain_name|
@domain = Domain.find_by_name(domain_name)
@keyword = @domain.keywords.find_by_term(keyword_term)
click_link("get_results_keyword_#{@keyword.id}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment