Created
September 15, 2009 14:57
-
-
Save devver/187353 to your computer and use it in GitHub Desktop.
Using Construct with Cucumber
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
require 'construct' | |
World(Construct::Helpers) | |
Before do | |
@construct = create_construct | |
end | |
After do | |
@construct.destroy! | |
end |
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 /^a file in a subdirectory$/ do | |
@construct.chdir do | |
@construct.file 'foo/bar' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment