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

fixes #4005 - ensure standalone Rabl.render works outside of a controller #1182

Closed
wants to merge 1 commit into from

Conversation

domcleal
Copy link
Contributor

No description provided.

assert_equal Hash, loaded[0].class
assert_equal 'foo', loaded[0]['name']
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. I couldn't find other tests for json root inclusion logic -- probably worth testing other conditions too, as there are quite a few of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should have some abstract RABL tests, but I think we do have coverage in specific functional API tests.

@ohadlevy
Copy link
Member

merged as 858708c thanks!

@ohadlevy ohadlevy closed this Jan 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants