Sha256: 41834575c7b7e99a9e5eaa7e85fcac5fb4d44b5b19fa295cc651aa3668a16cfb

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

require 'rails/application'

# Make sure the ActionDispatch::ShowExceptions middleware is always enabled,
# regardless of what is in config/environments/test.rb
# Instead we are overriding ActionDispatch::ShowExceptions to be able to
# toggle whether or not exceptions are raised.

module Rails
  class Application
    alias __cucumber_orig_initialize__ initialize!

    def initialize!
      ad = config.action_dispatch

      def ad.show_exceptions
        true
      end
      __cucumber_orig_initialize__
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-rails-2.0.0 lib/cucumber/rails/application.rb
cucumber-rails-1.8.0 lib/cucumber/rails/application.rb