Sha256: f48b9927f98448646e950d06f1a598a059a36716f23b433dff5bad0cf5721c19

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

Before do
  FileUtils.mkdir_p 'tmp/aruba'
end

After do
  FileUtils.rm_rf 'tmp/aruba'
end

Given(/^I have (\w+) file in directory$/) do |name|
  @filename = "#{name}.rb"
  FileUtils.ln_s "../../spec/fixtures/#{@filename}", 'tmp/aruba/'
  expect(`ls tmp/aruba`).to match(@filename)
end

Then(/^warder does nothing$/) do
  step 'the output should match /.{0}/'
end

Then(/^warder detects (.+) issues$/) do |what|
  executing_output = send(:"executing_#{what.sub(' ', '_')}")
  step "the output should contain \"#{executing_output}\""

  validation_output = send(:"#{what.sub(' ', '_')}_output")
  validation_output.split("\n").each do |string|
    step "the output should contain \"#{string}\""
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
warder-0.1.3 features/step_definitions/run_steps.rb
warder-0.1.2 features/step_definitions/run_steps.rb