You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow new hash syntax in Representation and Interpreter #62
I stumbled upon this issue while developing some specs for my project. I wanted to mock a HalClient::Representation by providing the parsed_json option to the constructor.
If the parsed_json hash keys are symbols instead of strings, things don't work quite like they should.
I'll leave a sample interaction for you to validate if this is something you'd like to see patched or not. Let me know !
Activity
pezra commentedon Mar 10, 2017
With the advent of symbol garbage collection in Ruby 2.2 we could do this. It would be a nicer interface.
@jpserra, want to take a pass at implementing this feature? I merge such a PR.