Sha256: 32ea5e36a14198a352ad2fc544d4aa3f33f9cb78abd498e6df6f620b7967f5d0

Contents?: true

Size: 260 Bytes

Versions: 15

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

Before('@allow-rescue') do
  @__orig_allow_rescue = ActionController::Base.allow_rescue
  ActionController::Base.allow_rescue = true
end

After('@allow-rescue') do
  ActionController::Base.allow_rescue = @__orig_allow_rescue
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cucumber-rails-3.1.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-3.1.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-3.0.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-3.0.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-3.0.0.rc.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.6.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.6.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.5.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.5.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.4.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.3.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.2.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.1.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-2.0.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.8.0 lib/cucumber/rails/hooks/allow_rescue.rb