Sha256: d2f622d2f100c8c22710431a1091040ecbe4a7d5bfd8c133ba2c5288988da1b5

Contents?: true

Size: 917 Bytes

Versions: 30

Compression:

Stored size: 917 Bytes

Contents

When /^I do shelr (.*)$/ do |shelr_step|
  begin
    step(shelr_step)
  rescue => e
    @shelr_exception = e
  end
end

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

Given /^shelr backend is (\w+)$/ do |backend|
  step "I run `shelr backend #{backend}`"
end

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

Then /^aruba should fail with "([^"]*)"$/ do |error_message|
  @shelr_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

When /^show me the output$/ do

  require 'pp'
  pp all_output
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
shelr-0.16.3 features/step_definitions/shelr_steps.rb
shelr-0.16.2 features/step_definitions/shelr_steps.rb
shelr-0.16.1 features/step_definitions/shelr_steps.rb
shelr-0.16.0 features/step_definitions/shelr_steps.rb
shelr-0.15.2 features/step_definitions/shelr_steps.rb
shelr-0.15.1 features/step_definitions/shelr_steps.rb
shelr-0.15.0 features/step_definitions/shelr_steps.rb
shelr-0.14.1 features/step_definitions/shelr_steps.rb
shelr-0.14.0 features/step_definitions/shelr_steps.rb
shelr-0.13.3 features/step_definitions/shelr_steps.rb
shelr-0.13.2 features/step_definitions/shelr_steps.rb
shelr-0.13.1 features/step_definitions/shelr_steps.rb
shelr-0.13.0 features/step_definitions/shelr_steps.rb
shelr-0.12.9 features/step_definitions/shelr_steps.rb
shelr-0.12.8 features/step_definitions/shelr_steps.rb
shelr-0.12.7 features/step_definitions/shelr_steps.rb
shelr-0.12.6 features/step_definitions/shelr_steps.rb
shelr-0.12.5 features/step_definitions/shelr_steps.rb
shelr-0.12.4 features/step_definitions/shelr_steps.rb
shelr-0.12.3 features/step_definitions/shelr_steps.rb