Sha256: fd81c68af92a29b06807a5b57107af028e7dabeca81b45f66e4c4673ebec0b4d

Contents?: true

Size: 755 Bytes

Versions: 8

Compression:

Stored size: 755 Bytes

Contents

When /^I do aruba (.*)$/ do |aruba_step|
  begin
    When(aruba_step)
  rescue => 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 varibable "(\w+)" to "([^"]*)"$/ do |var, value|
  ENV[var] = value
end

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aruba-0.4.6 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.5 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.4 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.3 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.2 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.1 features/step_definitions/aruba_dev_steps.rb
aruba-0.4.0 features/step_definitions/aruba_dev_steps.rb
aruba-0.3.7 features/step_definitions/aruba_dev_steps.rb