Sha256: e51502030fb3c8de8a82281d4693ae00c51809aff92092836f6d863c87726e58

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

When /^I do aruba (.*)$/ do |aruba_step|
  begin
    step(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 variable "(\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.length.should == length.to_i
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
aruba-0.5.4 features/step_definitions/aruba_dev_steps.rb
aruba-0.5.3 features/step_definitions/aruba_dev_steps.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/aruba-0.5.1/features/step_definitions/aruba_dev_steps.rb
aruba-0.5.2 features/step_definitions/aruba_dev_steps.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/aruba-0.5.1/features/step_definitions/aruba_dev_steps.rb
aruba-0.5.1 features/step_definitions/aruba_dev_steps.rb