Sha256: 9b2014340aa902f21b443ca6a3135c7db236058dd07333886cd489d9c727c690

Contents?: true

Size: 272 Bytes

Versions: 39

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal = true

RSpec.describe :to_json do
  link :to_json, from: :ree_json

  it {
    expect(to_json({id: 1})).to eq("{\"id\":1}")
  }

  it {
    expect(
      to_json({id: Object.new}, mode: :object)
    ).to eq("{\":id\":{\"^o\":\"Object\"}}")
  }
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ree_lib-1.0.39 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.38 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.37 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.36 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.35 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.34 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.30 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.29 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.28 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.27 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.26 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.24 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.23 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.22 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.21 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.20 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb
ree_lib-1.0.19 lib/ree_lib/packages/ree_json/spec/ree_json/functions/to_json_spec.rb