Skip to content

Commit 15453ff

Browse files
committed
Disable Mash warnings
The test logs are very polluted by the warning messages and while we use this implementation we have Mash's monkeypatches so there is no reason to see it in the logs all the time.
1 parent eb7c277 commit 15453ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/bitbucket_rest_api/response/mashify.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
require 'faraday'
44

55
module BitBucket
6-
class Response::Mashify < Response
7-
dependency 'hashie/mash'
6+
require 'hashie/mash'
7+
class Mash < ::Hashie::Mash
8+
disable_warnings
9+
end
810

11+
class Response::Mashify < Response
912
define_parser do |body|
10-
::Hashie::Mash.new body
13+
Mash.new body
1114
end
1215

1316
def parse(body)

0 commit comments

Comments
 (0)