Skip to content

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

Description

@charleskorn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions