-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send activation email after the commit in transactional databases #130
Changes from 4 commits
fa2bf9f
0985df9
658990f
bdec3d2
dd94983
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ class TestMailer < ActionMailer::Base; end | |
config.include RSpec::Rails::ControllerExampleGroup, file_path: /controller(.)*_spec.rb$/ | ||
config.mock_with :rspec | ||
|
||
config.use_transactional_fixtures = true | ||
config.use_transactional_fixtures = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anaumov is this to fix the callbacks not working due to it waiting for a commit that never happens? I'd be worried that this will break specs for end-users as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, if it sets to |
||
|
||
config.before(:suite) { setup_orm } | ||
config.after(:suite) { teardown_orm } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I honestly didn't realize rails had a callback for specifically after the DB commit.
👍