Sha256: 3de59d7dad609b14c26581f7aed824483dba90ed450ed339f883295f555266eb

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

Given /^I have a file "(.*?)" containing:$/ do |path, content|
  open(path, 'w') do |file|
    file.puts "$:.unshift '#{LIB}'"
    file.print content
  end
end

When /^I run "(.*?)"$/ do |command|
  @output = `bundle exec #{command} 2>&1`
end

Then /^I should see "(.*?)"$/ do |expected|
  @output.should include(expected)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
temporaries-0.4.0 features/step_definitions/command_steps.rb
temporaries-0.3.0 features/step_definitions/command_steps.rb
temporaries-0.2.0 features/step_definitions/command_steps.rb
temporaries-0.1.0 features/step_definitions/command_steps.rb
temporaries-0.0.3 features/step_definitions/command_steps.rb
temporaries-0.0.2 features/step_definitions/command_steps.rb
temporaries-0.0.1 features/step_definitions/command_steps.rb