Sha256: e4d7c7be1d72a4a8e07c254ec556ae3b579de9ab7dde8d42aa4f0190f7a8cd45

Contents?: true

Size: 768 Bytes

Versions: 5

Compression:

Stored size: 768 Bytes

Contents

When /^I do aruba (.*)$/ do |aruba_step|
  begin
    step(aruba_step)
  rescue Exception => e
    @aruba_exception = e
  end
end

# Useful for debugging timing problems
When /^sleep (\d+)$/ do |time|
  sleep time.to_i
end

When /^I set env variable "(\w+)" to "([^"]*)"$/ do |var, value|
  ENV[var] = value
end

Then /^aruba should fail with "([^"]*)"$/ do |error_message|
  expect(@aruba_exception.message).to include(unescape(error_message))
end

Then /^the following step should fail with Spec::Expectations::ExpectationNotMetError:$/ do |multiline_step|
  expect{steps multiline_step.to_s}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
end

Then /^the output should be (\d+) bytes long$/ do |length|
  expect(all_output.length).to eq length.to_i
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aruba-0.7.4 features/step_definitions/aruba_dev_steps.rb
aruba-0.7.3 features/step_definitions/aruba_dev_steps.rb
aruba-0.7.2 features/step_definitions/aruba_dev_steps.rb
aruba-0.7.1 features/step_definitions/aruba_dev_steps.rb
aruba-0.7.0 features/step_definitions/aruba_dev_steps.rb