Sha256: a7571103daea6361fea08c4a653b418bcaac3c83930ce611241e5c3f31f1903b

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

Given /^I have the configuration '(.+?)'$/ do |smas|
  @configuration = smas
end

When /^I run `(.+?)` with that configuration$/ do |command|
  process = IO.popen "bin/#{command} #{@configuration} 2>&1"
  @result = process.read
  process.close
  @code = $?.exitstatus
end

Then /^I should have a '(.+?)' file with$/ do |path, content|
  @code.should == 0
  File.should exist path
  SymbolMatrix(path).should == SymbolMatrix(content)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
empezar-0.4.1 features/step_definitions/configuration_scaffolding_steps.rb
empezar-0.4.0 features/step_definitions/configuration_scaffolding_steps.rb