Skip to content

Conversation

penguinpowernz
Copy link

@penguinpowernz penguinpowernz commented Dec 18, 2024

This helped me integrate Authie into an existing app that used Devise/Warden.

I think the modules from the README could actually be included in the codebase as:

  • lib/authie/test/devise_helper.rb
  • lib/authie/test/warden_helper.rb

Then people should be able to include it like Devise does in their spec_helper file:

require `authie/test/devise_helper`

RSpec.configure do |config|
  config.include Devise::Test::ControllerHelpers, :type => :controller
  config.include Authie::Test::DeviseHelpers, :type => :controller # this must come after the devise one
end

We could even add the setup_session function from the dummy app in this repo to lib/authie/test/controller_helpers.rb to make it easier to test on normal Authie apps.

Let me know if this is worth me pursuing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant