Skip to content

Commit 7189655

Browse files
committed
Tests: Removes Hashie warning, muting Ruby warnings
1 parent b0bb120 commit 7189655

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

elasticsearch-api/Rakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ namespace :test do
3535
task :unit
3636
RSpec::Core::RakeTask.new(:unit) do |t|
3737
t.pattern = 'spec/unit/**/*_spec.rb'
38-
t.ruby_opts = '-W0'
3938
end
4039

4140
desc 'Run unit and integration tests'
@@ -52,7 +51,6 @@ namespace :test do
5251
desc 'Run Integration tests'
5352
RSpec::Core::RakeTask.new(:integration) do |t|
5453
t.pattern = 'spec/integration/**/*_spec.rb'
55-
t.ruby_opts = '-W0'
5654
end
5755

5856
# This is the task to run the Elasticsearch REST tests which we stopped using for 9.x.

elasticsearch-api/spec/unit/actions/hashie_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
require 'spec_helper'
1919
require 'hashie'
20+
require 'hashie/logger'
21+
Hashie.logger = Logger.new(nil)
2022

2123
describe 'Hashie' do
22-
2324
let(:json) do
2425
<<-JSON
2526
{
@@ -79,7 +80,7 @@
7980
end
8081

8182
let(:response) do
82-
Hashie::Mash.new MultiJson.load(json)
83+
Hashie::Mash.new(MultiJson.load(json))
8384
end
8485

8586
it 'wraps the response' do

0 commit comments

Comments
 (0)