Sha256: b489039d2aa80433dfcc222347b797bd61d076d308a0c7882abef417066e811f
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
require 'tempfile' require 'fileutils' When /^I get help for "([^"]*)"$/ do |app_name| @app_name = app_name step %(I run `#{app_name} help`) end Given(/^the file "(.*?)" contains:$/) do |filename, contents| FileUtils.chdir "tmp/aruba" do @files_created << filename File.open(filename,'w') do |file| file.puts contents end end end Given(/^this config file:$/) do |string| FileUtils.chdir "tmp/aruba" do @files_created << "config.json" File.open("config.json",'w') do |file| file.puts string end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookingit-0.0.1 | features/step_definitions/bookinggit_steps.rb |