Sha256: 967d7aee6527acddc73b3cbe20043b7da73f9cc3e1e313bf925d449b6bdfd41d
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
Given /^we are in a project directory$/ do FileUtils.mkdir_p('tmp') Dir.chdir('tmp') end Given /^the project directory is configured for the '(.+)'$/ do |mod| @scenario = eval(mod) @scenario.generate end When /^rake task 'ffi:generate' is invoked$/ do @output = `rake ffi:generate 2>&1` @result = $?.success? end Then /^rake task 'ffi:generate' succeeded$/ do @result.should be_true end Then /^the file '(.+)' is created/ do |fn| File.exists?(fn).should be_true end Then /^the file '(.+)' contains ffi glue code$/ do |fn| File.read(fn).should == @scenario.result_template end Then /^the tmp directory is removed$/ do Dir.chdir('..') FileUtils.rm_rf 'tmp' File.exists?('tmp').should be_false end
Version data entries
3 entries across 3 versions & 1 rubygems