Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created June 9, 2012 13:36
Show Gist options
  • Save chintanparikh/2901003 to your computer and use it in GitHub Desktop.
Save chintanparikh/2901003 to your computer and use it in GitHub Desktop.
Given /^there is a category called "(.*?)"$/ do |category_name|
FactoryGirl.create(:category, name: category_name)
end
Then /^I want to see "(.*?)"$/ do |text|
page.should have_text(text)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment