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

fix congress message spec #909

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jparr
Copy link
Collaborator

@jparr jparr commented Apr 4, 2024

added a helper for better delayed job error reporting

@jparr jparr requested a review from esoterik April 4, 2024 21:06
@@ -69,8 +69,7 @@ def background_submit(test: false)
return unless valid?

@forms.each do |f|
f.delay.fill(attributes_for(f.bioguide_id), campaign.campaign_tag,
test: test)
f.delay.fill(attributes_for(f.bioguide_id), campaign.campaign_tag, test)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like rubocop 'fixed' this here: 9ecfc7d

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I need to add something so rubocop doesnt make the same mistake again

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I got rubocop running and it did not try to fix this again so I think its good to go!

@@ -30,6 +30,12 @@
mocks.verify_partial_doubles = true
end

config.around(:each, :run_delayed_jobs) do |example|
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added this nice helper. it runs the jobs synchronously so you get error reporting inline with the test/logging output

-looks like rubocop erroneously 'fixed' this method
@jparr jparr force-pushed the jparr/fix-congress-message-spec branch from 29086c4 to 33c81e9 Compare April 5, 2024 15:52
@esoterik esoterik merged commit 1b88173 into 2024-upgrades-main Apr 8, 2024
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

2 participants