Sha256: d7fc6440d5446a7d6222b92c75ac84c8b08a1bc9a8952d52bd0352dcf9f793aa

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

When /^I get an exception referencing a file that doesn't exist$/ do
  begin
    1 / 0
  rescue Exception => e
    e.backtrace[0].gsub! File.dirname(__FILE__), 'no_such_directory'
    raise e
  end
end

When /^I get an exception referencing a line that doesn't exist$/ do
  begin
    1 / 0
  rescue Exception => e
    e.backtrace[0].gsub! /:[\d]+:/, ':10000:'
    raise e
  end
end

When /^I get an exception and I cannot even tell which file and line it's from$/ do
  begin
    1 / 0
  rescue Exception => e
    e.backtrace[0].gsub! /:(.*):/, 'mangle mangle'
    raise e
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cuukie-0.3.1 spec/test_project/features/step_definitions/exception_steps.rb
cuukie-0.3.0 spec/test_project/features/step_definitions/exception_steps.rb
cuukie-0.2.2 spec/test_project/features/step_definitions/exception_steps.rb
cuukie-0.2.1 spec/test_project/features/step_definitions/exception_steps.rb
cuukie-0.2.0 spec/test_project/features/step_definitions/exception_steps.rb
cuukie-0.1.4 spec/test_project/features/step_definitions/exception_steps.rb