Skip to content

New features in 2.7.0 break my tests #773

@Ch4s3

Description

@Ch4s3

The functionality in controller_transaction.rb seems to blow up my tests with the following error:

ArticlesController GET #show returns http success
     Failure/Error: get :show, params: { id: article.uuid }

     LocalJumpError:
       no block given (yield)
     # /Users/chase/.rvm/gems/ruby-2.3.3/gems/sentry-raven-2.7.0/lib/raven/integrations/rails/controller_transaction.rb:8:in `block (2 levels) in included'
     # /Users/chase/.rvm/gems/ruby-2.3.3/gems/devise-4.3.0/lib/devise/test/controller_helpers.rb:33:in `block in process'
     # /Users/chase/.rvm/gems/ruby-2.3.3/gems/devise-4.3.0/lib/devise/test/controller_helpers.rb:100:in `catch'
     # /Users/chase/.rvm/gems/ruby-2.3.3/gems/devise-4.3.0/lib/devise/test/controller_helpers.rb:100:in `_catch_warden'
     # /Users/chase/.rvm/gems/ruby-2.3.3/gems/devise-4.3.0/lib/devise/test/controller_helpers.rb:33:in `process'
     # ./spec/controllers/articles_controller_spec.rb:45:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:49:in `block (2 levels) in <top (required)>'

2.6.3 works just fine. @nateberkopec it looks like someone else mentioned this in the comments on PR #743, so I thought I'd open an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions