waterlink / rspec-json_expectations

Set of matchers and helpers to allow you test your APIs responses like a pro.
https://www.relishapp.com/waterlink/rspec-json-expectations/docs
MIT License
140 stars 23 forks source link

"warning: assigned but unused variable - items" and "warning: method redefined; discarding old traverse" warnings #28

Open charleskorn opened 6 years ago

charleskorn commented 6 years ago

Whenever I run my tests, I see warnings like this in the RSpec output:

/code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/failure_presenter.rb:63: warning: assigned but unused variable - items

Randomized with seed 44329
.../code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: method redefined; discarding old traverse
/code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: previous definition of traverse was here
../code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: method redefined; discarding old traverse
/code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: previous definition of traverse was here
../code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: method redefined; discarding old traverse
/code/.bundle-cache/gems/rspec-json_expectations-2.1.0/lib/rspec/json_expectations/matchers.rb:2: warning: previous definition of traverse was here
.......

Finished in 0.23034 seconds (files took 2.81 seconds to load)
14 examples, 0 failures

Am I doing something wrong, or is this expected output?

Ruby version: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux] rspec-json_expectations version: 2.1.0