Sha256: 06e5ebc5ca241c3857119650d067b4acf89275afc738e77355760e2880aeb60e

Contents?: true

Size: 528 Bytes

Versions: 5

Compression:

Stored size: 528 Bytes

Contents

require 'spec_helper'

describe "Rack::Typhoeus::Middleware::ParamsDecoder" do

  before(:all) do
    require "rack/typhoeus"
  end

  let(:app) do
    stub
  end

  let(:env) do
    stub
  end

  let(:klass) do
    Rack::Typhoeus::Middleware::ParamsDecoder
  end

  describe "#call" do
  end

  context "when requesting" do
    let(:response) { Typhoeus.get("localhost:3001", :params => {:x => [:a]}) }

    it "transforms parameters" do
      expect(response.body).to include("query_hash\":{\"x\":[\"a\"]}")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typhoeus-0.6.8 spec/rack/typhoeus/middleware/params_decoder_spec.rb
typhoeus-0.6.7 spec/rack/typhoeus/middleware/params_decoder_spec.rb
typhoeus-0.6.6 spec/rack/typhoeus/middleware/params_decoder_spec.rb
typhoeus-0.6.5 spec/rack/typhoeus/middleware/params_decoder_spec.rb
typhoeus-0.6.4 spec/rack/typhoeus/middleware/params_decoder_spec.rb