Created
March 21, 2011 01:56
-
-
Save jonhoman/878905 to your computer and use it in GitHub Desktop.
Cucumber VCR examples
This file contains hidden or 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 /^I have a feed I want to edit$/ do | |
VCR.use_cassette("feed") do | |
@feed = Factory :feed | |
end | |
end |
This file contains hidden or 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
When /^I make an external call$/ do | |
VCR.use_cassette("feed") do | |
When 'I press "Create Feed"' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment