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 tests #911

Merged
merged 2 commits into from
Mar 20, 2019
Merged

Fix tests #911

merged 2 commits into from
Mar 20, 2019

Conversation

benthorner
Copy link
Contributor

No description provided.

A new version of Webmock is required to work with the new version of
Ruby.
@@ -1,3 +1,5 @@
$VERBOSE = nil
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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 :-).

Copy link
Member

@kevindew kevindew left a 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.
@benthorner benthorner merged commit d828310 into master Mar 20, 2019
@benthorner benthorner deleted the fix-tests branch March 20, 2019 10:21
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.

3 participants