nesquena / rabl

General ruby templating with json, bson, xml, plist and msgpack support
http://blog.codepath.com/2011/06/27/building-a-platform-api-on-rails/
MIT License
3.64k stars 334 forks source link

fix test from #649 #658

Closed boutil closed 8 years ago

boutil commented 8 years ago

The test added from #649 seems to return the hash {some: data} and not nil as it is expected now. Right now, the test fails in my environment with the following error:

Rabl::Builder #resolve_conditionals asserts that it can use a hash variable on if condition and return true => expected nil, not {:some=>"data"}

This PR is fixing this. Now the tests pass in my environment with Ruby 2.3

nesquena commented 8 years ago

Thanks for fixing this stuff up!