Created
May 29, 2012 22:57
-
-
Save braidn/2831308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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