warden: Warden 1.2.5 breaks Rails/RSpec tests

Hi there,

A bundle update was run by deppbot today and we found that just changing from 1.2.4 to 1.2.5 seems to have broken our specs: Coursemology/coursemology2#757 I ran the specs locally with 1.2.4 and they pass.

The errors all seem incredibly strange, to the tune of:

     Failure/Error:
       get root_path, 'user_email' => user.email,
                      'user_token' => user.authentication_token

     NameError:
       undefined local variable or method `root_path' for #<RSpec::ExampleGroups::UsersSignInWithToken::WithTenantInstance::WhenAUserTokenIsSpecifiedAsAParameter:0x0000864d7d2f98>

I did a diff between 1.2.4 and 1.2.5, but I don’t see anything which can possibly be the culprit. Any ideas?

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

i have tried

gem 'warden', github: 'acaron/warden', branch: 'fix-test-helpers'

and it’s working well 👍

ps: this is how we attach devise to our rails test suite

RSpec.configure do |config|
  config.include Devise::TestHelpers, type: :controller
end