-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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| |
There was a problem hiding this comment.
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
29086c4
to
33c81e9
Compare
added a helper for better delayed job error reporting