Sha256: c63d99df54dbdf9ab83771989aabd844617d1a45272032a0120fe8f79deec29e

Contents?: true

Size: 517 Bytes

Versions: 43

Compression:

Stored size: 517 Bytes

Contents

require 'spec_helper'

describe Qa::Authorities::AssignFast::SpaceFixEncoder do
  let(:encoder) { described_class.new }

  it 'encodes spaces as %20 instead of +' do
    input = { "query" => "word ling", "queryIndex" => "suggestall", "queryReturn" => "suggestall,idroot,auth,type", "suggest" => "autoSubject", "rows" => "20" }
    expected = "query=word%20ling&queryIndex=suggestall&queryReturn=suggestall%2Cidroot%2Cauth%2Ctype&rows=20&suggest=autoSubject"
    expect(encoder.encode(input)).to eq expected
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
qa-5.0.0 spec/lib/authorities/space_fix_encoder.rb
qa-4.2.4 spec/lib/authorities/space_fix_encoder.rb
qa-4.2.3 spec/lib/authorities/space_fix_encoder.rb
qa-4.2.2 spec/lib/authorities/space_fix_encoder.rb
qa-4.2.1 spec/lib/authorities/space_fix_encoder.rb
qa-4.2.0 spec/lib/authorities/space_fix_encoder.rb
qa-4.1.1 spec/lib/authorities/space_fix_encoder.rb
qa-4.1.0 spec/lib/authorities/space_fix_encoder.rb
qa-4.0.0 spec/lib/authorities/space_fix_encoder.rb
qa-4.0.0.rc3 spec/lib/authorities/space_fix_encoder.rb
qa-4.0.0.rc2 spec/lib/authorities/space_fix_encoder.rb
qa-4.0.0.rc1 spec/lib/authorities/space_fix_encoder.rb
qa-3.0.0 spec/lib/authorities/space_fix_encoder.rb
qa-2.2.0 spec/lib/authorities/space_fix_encoder.rb
qa-2.1.2 spec/lib/authorities/space_fix_encoder.rb
qa-2.1.1 spec/lib/authorities/space_fix_encoder.rb
qa-2.0.1 spec/lib/authorities/space_fix_encoder.rb
qa-2.0.0 spec/lib/authorities/space_fix_encoder.rb
qa-1.2.0 spec/lib/authorities/space_fix_encoder.rb
qa-1.1.0 spec/lib/authorities/space_fix_encoder.rb