Sha256: 52b88daf1d2844f9f8e8c0fd5b631550bc26fd3b08edb88f1e326b5adae7335b

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

require 'cucumber'
if respond_to? :After
  After do |scenario|
    if scenario.failed? && scenario.source_tag_names.include?("@stop") && scenario.source_tag_names.include?("@stop")
      puts "Scenario failed. You are in irb because of @stop. Type exit when you are done"
      require 'irb'
      require 'irb/completion'
      ARGV.clear
      IRB.start
    end  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cuke-irb-0.0.1 lib/cuke-irb/stopper.rb