Sha256: 429a0e92c11ecdb856b459844f2dc406bbd976e1af3cebf005d82c67a58a86d3

Contents?: true

Size: 704 Bytes

Versions: 3

Compression:

Stored size: 704 Bytes

Contents

Given /^I have a local file named "([^"]*)" with:$/ do |filename, content|
  File.open(filename, 'w') {|io| io.write(content)}
end

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

Then /^the output should contain the JRuby version$/ do
  pending "This must be manually run in JRuby" unless defined?(JRUBY_VERSION)
  Then %{the output should contain "#{JRUBY_VERSION}"}
end

Then /^the output should contain the current Ruby version$/ do
  Then %{the output should contain "#{RUBY_VERSION}"}
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aruba-0.2.2 features/step_definitions/aruba_dev_steps.rb
aruba-0.2.1 features/step_definitions/aruba_dev_steps.rb
aruba-0.2.0 features/step_definitions/aruba_dev_steps.rb