Skip to content

Bad results with Rails #2

Closed
Closed
@jscheid

Description

@jscheid

Describe the bug

Results don't always match the spec when using this gem with also the rails gem loaded (more precisely: the activesupport gem, which is a dependency of rails).

This is because Rails overrides a number of to_json methods and modifies them in a way that is incompatible, for example.

To reproduce
Steps to reproduce the behavior:

  1. Install and require this gem and rails
  2. "&".to_json_c14n should give "&" but instead gives "\u0026".

Expected behavior
This gem's behavior shouldn't depend on the presence of other gems, at least not ones as common as Rails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions