Skip to content

Instantly share code, notes, and snippets.

@spencerldixon
Created July 19, 2019 10:47
Show Gist options
  • Save spencerldixon/d33d9abc43e5fab333c7eda6f8d725e4 to your computer and use it in GitHub Desktop.
Save spencerldixon/d33d9abc43e5fab333c7eda6f8d725e4 to your computer and use it in GitHub Desktop.
RSpec Boilerplate
config.include FactoryBot::Syntax::Methods
config.include Devise::Test::ControllerHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :view
config.include Devise::Test::IntegrationHelpers, type: :feature
@spencerldixon
Copy link
Author

Add these lines to your rails_helper.rb to enable devise test helpers across tests

@spencerldixon
Copy link
Author

Add --format documentation to your .rspec in the root to add better formatting to your test output

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