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

require json at spec_helper to fix #532 #533

Merged
merged 1 commit into from Oct 5, 2020

Conversation

gnomex
Copy link
Contributor

@gnomex gnomex commented Oct 5, 2020

Fixes, details at #532

Failures:

  1) DashTestDefaultProc to_json behaves correctly with default proc
     Failure/Error: to_hash.to_json(*args)
     
     NoMethodError:
       undefined method `to_json' for {:fields=>[]}:Hash
       Did you mean?  to_s
     # ./lib/hashie/hash.rb:43:in `to_json'
     # ./spec/hashie/dash_spec.rb:61:in `block (2 levels) in <top (required)>'

Finished in 0.18124 seconds (files took 0.31668 seconds to load)
673 examples, 1 failure

Failed examples:

rspec ./spec/hashie/dash_spec.rb:59 # DashTestDefaultProc to_json behaves correctly with default proc

The solution was appointed by @dblock by adding require 'json' to spec_helper.rb

@dblock dblock merged commit 097ad42 into hashie:master Oct 5, 2020
@michaelherold michaelherold added the hacktoberfest-accepted Accepted changes for Hacktoberfest label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted changes for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants