Sha256: 29697f231362c8fe76057d766dfedb38af2eb2aad0504a56644cf8b6238f6265

Contents?: true

Size: 639 Bytes

Versions: 65

Compression:

Stored size: 639 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 status should be (\d+)$/ do |number|
  @exit_status.should == number.to_i
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
flapjack-0.7.27 features/steps/packaging-lintian_steps.rb
flapjack-0.7.26 features/steps/packaging-lintian_steps.rb
flapjack-0.7.25 features/steps/packaging-lintian_steps.rb
flapjack-0.7.22 features/steps/packaging-lintian_steps.rb
flapjack-0.7.21 features/steps/packaging-lintian_steps.rb
flapjack-0.7.20 features/steps/packaging-lintian_steps.rb
flapjack-0.7.19 features/steps/packaging-lintian_steps.rb
flapjack-0.7.18 features/steps/packaging-lintian_steps.rb
flapjack-0.7.17 features/steps/packaging-lintian_steps.rb
flapjack-0.7.16 features/steps/packaging-lintian_steps.rb
flapjack-0.7.15 features/steps/packaging-lintian_steps.rb
flapjack-0.7.14 features/steps/packaging-lintian_steps.rb
flapjack-0.7.13 features/steps/packaging-lintian_steps.rb
flapjack-0.7.12 features/steps/packaging-lintian_steps.rb
flapjack-0.7.11 features/steps/packaging-lintian_steps.rb
flapjack-0.7.10 features/steps/packaging-lintian_steps.rb
flapjack-0.7.9 features/steps/packaging-lintian_steps.rb
flapjack-0.7.8 features/steps/packaging-lintian_steps.rb
flapjack-0.7.7 features/steps/packaging-lintian_steps.rb
flapjack-0.7.6 features/steps/packaging-lintian_steps.rb