Create a gist now

Instantly share code, notes, and snippets.

@devver /env.rb
Created Sep 15, 2009

What would you like to do?
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