Skip to content
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

ActiveJob performed matchers #1785

Merged
merged 1 commit into from Dec 20, 2019

Conversation

isaacseymour
Copy link
Contributor

  • have_been_performed is like have_been_enqueued, but for performed
    jobs
  • have_performed_job is like have_enqueued_job, but for performed
    jobs

It's somewhat unusual to use perform_enqueued_jobs, but it seems nice if
rspec-rails supports it!

Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase to see if we can get a green build here...

@pirj pirj requested a review from JonRowe December 12, 2019 15:38
@pirj
Copy link
Member

pirj commented Dec 13, 2019

Also squashed commits.

@pirj
Copy link
Member

pirj commented Dec 13, 2019

Squashed on @isaacseymour's branch, but that did not update the PR 8E

@pirj pirj force-pushed the activejob-performed-matchers branch from ec14c6c to b3ec8c9 Compare December 13, 2019 16:37
Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! A few tweaks / queries left

lib/rspec/rails/matchers/active_job.rb Show resolved Hide resolved
lib/rspec/rails/matchers/active_job.rb Show resolved Hide resolved
spec/rspec/rails/matchers/active_job_spec.rb Show resolved Hide resolved
@pirj pirj force-pushed the activejob-performed-matchers branch from bcf77ba to db5696b Compare December 17, 2019 20:10
@pirj pirj requested a review from JonRowe December 17, 2019 20:32
Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merge when green, don't forget a changelog

@benoittgt
Copy link
Member

@isaacseymour could you rebase? We fixed the CI.

* `have_been_performed` is like `have_been_enqueued`, but for performed
  jobs
* `have_performed_job`/`perform_job` is like
  `have_enqueued_job`/`enqueue_job`, but for performed jobs
@pirj
Copy link
Member

pirj commented Dec 20, 2019

Rebased 👍

@pirj pirj force-pushed the activejob-performed-matchers branch from db5696b to 56f6387 Compare December 20, 2019 13:24
@JonRowe JonRowe merged commit 7dc567f into rspec:master Dec 20, 2019
@benoittgt
Copy link
Member

@pirj I didn't you can rebase and push from a fork you don't own. 🤔

@pirj
Copy link
Member

pirj commented Dec 20, 2019

It seems it's possible by default with this setting:
image

@benoittgt
Copy link
Member

Thanks! Good to know.

JonRowe added a commit that referenced this pull request Jan 12, 2020
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.

None yet

5 participants