Skip to content

Instantly share code, notes, and snippets.

@braidn
Created May 29, 2012 22:57
Show Gist options
  • Save braidn/2831308 to your computer and use it in GitHub Desktop.
Save braidn/2831308 to your computer and use it in GitHub Desktop.
Feature: This is just for simple testing purposes
Background:
Given I am at the list of adhesives
And there is an object named "Stuff"
Scenario:
When I click on "Stuff"
Then I am presented with a detailed view of the object
Given /^there is an object named "(.*?)"$/ do |stuff|
@adhesife = FactoryGirl.build(:adhesive, :adhesivedescription => stuff)
@adhesife.save!
page.has_content?(stuff)
end
When /^I click on "(.*?)"$/ do |button|
click_on(button)
end
Then /^I am presented with a detailed view of the object$/ do
pending # express the regexp above with the code you wish you had
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment