Sha256: dd6463a09706b314c90b4f038150920a56c318f9fd6f9f799e463060f94eece2

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

Given /^I am at the project root$/ do
  Dir.pwd.split('/').last.should == "flapjack"
end

Then /^I should see (\d+) lines of output$/ do |number|
  @output.split.size.should == number.to_i
end

Then /^every file in the output should start with "([^\"]*)"$/ do |string|
  @output.split.each do |file|
    `head -n 1 #{file}`.should =~ /^#{string}\s*$/
  end
end

When /^I run `([^"]*)`$/ do |cmd|
  #bin_path = '/usr/bin'
  #command = "#{bin_path}/#{cmd}"

  #@output = `#{command}`
  @output = `#{cmd} 2>&1`
  @exit_status = $?.exitstatus
end

Then /^the exit value should be (\d+)$/ do |number|
  @exit_status.should == number.to_i
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flapjack-0.7.29 features/steps/packaging-lintian_steps.rb
flapjack-0.7.28 features/steps/packaging-lintian_steps.rb