Skip to content

Instantly share code, notes, and snippets.

@devver
Created September 15, 2009 14:57
Show Gist options
  • Save devver/187353 to your computer and use it in GitHub Desktop.
Save devver/187353 to your computer and use it in GitHub Desktop.
Using Construct with Cucumber
require 'construct'
World(Construct::Helpers)
Before do
@construct = create_construct
end
After do
@construct.destroy!
end
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