Comments (10)
Minofare has submitted a pull request for this: http://github.com/minofare/email-spec/commits/e36cce7c2afd826c8888dbec82ffc3ee6a47a6de
from email-spec.
I'm going to merge this in but I want to tag the previous releases to the correct delayed_job version. What version of DJ introduced the breaking changes?
from email-spec.
I think the breaking version is 1.8.5. Please correct me if I'm wrong.
from email-spec.
I made the change when collectiveidea/delayed_job was 1.8.4, I did some research and the work_off method was implemented here:
collectiveidea/delayed_job@31cbb07
from email-spec.
After upgrading my delayed job I still get errors with your patch:
Feature: Delayed Job support
In order for developers using delayed_job to test emails
I want to be able to provide a compatibility layer, which
should run all delayed jobs before checking email boxes
In order to populate deliveries done via send_later
Scenario: Newsletter
Given no emails have been sent
undefined method `work_off' for class `Delayed::Worker' (NameError)
/Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `public'
/Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `send'
/Users/bmabey/Programming/ruby/email-spec/lib/email_spec/background_processes.rb:19:in `reset_mailer'
./features/step_definitions/email_steps.rb:44:in `/^(?:a clear email queue|no emails have been sent)$/'
features/delayed_job.feature:8:in `Given no emails have been sent'
I've merged in the changes but I don't want to make a release until this is passing. It is probably something I am doing wrong on my end. Would someone mind grabbing the code from github and running rake
? To run just the delayed job feature you can say cd examples/rails_root/ && cucumber features/delayed_job.feature
. (You will need to run rake from the root before you just run the delayed_job.feature.)
from email-spec.
I'm working through this and a few other issues now. Stay tuned.
from email-spec.
Fix available at http://github.com/KieranP/email-spec/commit/51c8c8e916c320064d4211740f426827ab31e6ed
from email-spec.
For the ticket record, the errors Ben was getting were because the delayed job with the changes isn't release yet. We really should support both versions. My patch does that.
from email-spec.
Thanks for the fix Kieran!
from email-spec.
Merged in Kieran's fixes and released 0.6.0.
from email-spec.
Related Issues (20)
- mail.html method useful? HOT 2
- Testing in isolation seems to fail HOT 1
- visit_in_email opens the wrong link
- Match have body text with special characters HOT 1
- Doesn't work anymore after upgrading Rails (ActionMailer::Base.deliveries is empty) HOT 3
- Email_spec causes rspec to fail (though not under Spring) HOT 5
- NameError: uninitialized constant RSpec::Expectations on current_email method
- NameError: uninitialized constant Delayed::DelayMail HOT 4
- Update to support mail gem 2.7 HOT 2
- `have_body_text` with URL now failing after upgrading `mail` gem from 2.6.6 to 2.7.0 HOT 3
- Incorrect parse of confirmation url generated by ahoy_email HOT 1
- Non compatible HTML entities encoding/decoding HOT 1
- New gem version HOT 2
- EmailSpec::CouldNotFindEmailError HOT 2
- checking for a mail in the queue with multiple properties HOT 1
- Add include_link matcher HOT 2
- I send my mail both via Pony and ActionMailer
- Getting uninitialized constant EmailSpec::Helpers HOT 5
- undefined local variable or method `reset_mailer' HOT 21
- 2.2.1 gem released but master is 2.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-spec.