Sha256: 591e1c4edc6b24e342a9605c62b60a6ece9ee60dd5a99881f7844fcc8661a6f1

Contents?: true

Size: 229 Bytes

Versions: 30

Compression:

Stored size: 229 Bytes

Contents

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

30 entries across 30 versions & 2 rubygems

Version Path
cucumber-rails-1.7.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.6.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.5.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.5 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.4 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.3 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.2 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.4.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.3.1 lib/cucumber/rails/hooks/allow_rescue.rb
casecumber-rails-1.0.2.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.3.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.2.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.2.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.1.1 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.1.0 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.0.6 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.0.5 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.0.4 lib/cucumber/rails/hooks/allow_rescue.rb
cucumber-rails-1.0.3 lib/cucumber/rails/hooks/allow_rescue.rb