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

update assert_no_performed_jobs doc to use assert_no_performed_jobs method [ci skip] #24350

Merged

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Mar 29, 2016

There is a example to use the assert_performed_jobs in assert_no_performed_jobs's doc, but I think this is a mistake.

@rails-bot
Copy link

r? @arthurnn

(@rails-bot has picked a reviewer for you, use r? to override)

# end
#
# An array may also be specified, to support testing multiple jobs.
# It can be asserted that no jobs of a specific kind are performed:
Copy link
Member

Choose a reason for hiding this comment

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

@y-yagi we can expand similar to above deleted documentation, to specify which option is used to perform the filtering.

Copy link
Member Author

Choose a reason for hiding this comment

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

@vipulnsward Thanks for reviewing. I updated.

@kaspth
Copy link
Contributor

kaspth commented Mar 29, 2016

I'm 👎 on this. I think the intention of the original docs are clearer. We're making assertions about a given job and only just tightens the scope so the reader knows we aren't testing other jobs.

Though I'm 👍 on adding a separate example for assert_no_performed_jobs.

@kaspth
Copy link
Contributor

kaspth commented Mar 29, 2016

Doh! I see that I was wrong and we're documenting the wrong assertion. Never mind me, 👍

@y-yagi y-yagi force-pushed the update_assert_no_performed_jobs_doc branch from 1ff2daa to 87824ab Compare March 29, 2016 23:14
@vipulnsward vipulnsward merged commit 1fee849 into rails:master Mar 29, 2016
@vipulnsward
Copy link
Member

Thanks @y-yagi !

@y-yagi
Copy link
Member Author

y-yagi commented Mar 29, 2016

Thanks 😄

@y-yagi y-yagi deleted the update_assert_no_performed_jobs_doc branch March 29, 2016 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants