Sha256: 5c895d64b9d887f4c5634050c1c3f6ef32a4b350185031a2095ae0ac466148e5

Contents?: true

Size: 336 Bytes

Versions: 16

Compression:

Stored size: 336 Bytes

Contents

require "spec_helper"

describe JsRoutes, "#default_serializer" do

  before(:each) do
    evaljs(JsRoutes.generate({}))
  end

  it "should provide this method" do
    expect(evaljs("Routes.default_serializer({a: 1, b: [2,3], c: {d: 4, e: 5}, f: ''})")).to eq(
      "a=1&b%5B%5D=2&b%5B%5D=3&c%5Bd%5D=4&c%5Be%5D=5&f="
    )
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
js-routes-1.4.14 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.13 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.12 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.11 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.9 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.8 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.7 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.6 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.5 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.4 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.3 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.2 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.1 spec/js_routes/default_serializer_spec.rb
js-routes-1.4.0 spec/js_routes/default_serializer_spec.rb
js-routes-zigexn-1.3.3.1 spec/js_routes/default_serializer_spec.rb
js-routes-zigexn-1.3.3 spec/js_routes/default_serializer_spec.rb