-
Notifications
You must be signed in to change notification settings - Fork 14
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 tests #911
Fix tests #911
Conversation
A new version of Webmock is required to work with the new version of Ruby.
test/test_helper.rb
Outdated
@@ -1,3 +1,5 @@ | |||
$VERBOSE = nil |
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 think this is explicitly turned on in the rakefile https://github.com/alphagov/gds-api-adapters/blob/master/Rakefile#L14 - so we can probably remove it there rather than need to change the ruby runtime option.
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.
Ah, good spot, but unfortunately not. Ruby warnings aren't turned on by default, so my assumption is that one of the gems is doing it.
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.
Ah darn.
~~ has a play ~~
We can get the behaviour you're aiming by replacing t.verbose = true
with t.warning = false
At the least we should remove the verbose off there if we do it here so we don't have one place turning verbosity up and one down.
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.
Yay, thank you - it's even better like that :-).
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.
Nice one fixing this 👍
This removes warnings that were complicating the test output. All of the warnings were about other gems, except for one minor deprecation.
No description provided.