-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix have_enqueued_mail for Rails 7 and argument matching #2546
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
Conversation
@JonRowe Rails 7 specs are green. This is a good first step to support it. |
Thanks @pirj for your work. Is there an ETA for this PR to be merged and a release version? |
RSpec is a community driven project (e.g. volunteers in there free time only) and doesn't commit to ETAs |
1. ActionMailer::DeliveryJob does not exist anymore 2. ActionMailer::Parameterized::DeliveryJob According to my research they have both been superseeded by ActionMailer::MailDeliveryJob Closes #2531
ActionPack is checking `instance_created?` now, and it was `false`, so `take_screenshot` was not called. ``` def take_failed_screenshot take_screenshot if failed? && supports_screenshot? && Capybara::Session.instance_created? end ``` rails/rails@1dfcffb
9628d30
to
dd48c6b
Compare
I intend to merge this on green. In any case, RSpec is unusable with Rails 7 without this. I'll keep the branch not removed not to break it for those who |
Thank you! Will there be a tagged release to go with this or should we just use main in the meantime? |
We're working on an undetermined number of failures now. The release will come when our test suite will pass with Rails 7. Using |
I was holding off avoiding merging these @pirj, but sorry I didn't communicate that with you, because it makes it easier to do our release steps.
This is because major version changes are required for new rails versions for us under our release policy, but this means a bunch of branch wrangling. |
I was suspecting this. My apologies for rushing. Can I help with the release somehow, @JonRowe ? |
If you happen to track gem 'rspec-rails`, github: 'rspec/rspec-rails', branch: 'combo-have_enqueued_mail-fixes' |
When attempting to use the
|
This temp patch fixes issue, im on |
You also have to specify the rest of RSpec gems to be fetched from GitHub like here https://github.com/rspec/rspec-rails/blob/main/Gemfile-rspec-dependencies#L7 |
rspec-rails v6.0.0.rc1 needs to be used to support `have_enqueued_email` in Rails 7 (see rspec/rspec-rails#2546). However, that would break tests for previous versions. On top of that, `rspec-rails` dependency is transitive through `solidus_dev_support`, which is not compatible with rsec-rails v6.0.0.rc1.
rspec-rails v6.0.0.rc1 needs to be used to support `have_enqueued_email` in Rails 7 (see rspec/rspec-rails#2546). However, that would break tests for previous versions. On top of that, `rspec-rails` dependency is transitive through `solidus_dev_support`, which is not compatible with rsec-rails v6.0.0.rc1.
rspec-rails v6.0.0.rc1 needs to be used to support `have_enqueued_email` in Rails 7 (see rspec/rspec-rails#2546). However, that would break tests for previous versions. On top of that, `rspec-rails` dependency is transitive through `solidus_dev_support`, which is not compatible with rsec-rails v6.0.0.rc1.
This is a combo of #2516 and #2537, supposed to fix #2351 and #2531 with a slight fix for argument matching and a small fix for our system spec spec on Rails 7.