Sha256: d15118adf4287e36647e657714a5bda21a6228c01982b4004485c12df5ad1d00

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))

describe "delete_empty_headers plugin" do 
  it "automatically deletes headers that are empty" do
    app(:delete_empty_headers) do |r|
      response['Foo'] = ''
      response['Content-Type'] = ''
      response['Content-Length'] = ''
      response['Bar'] = '1'
      'a'
    end

    req[1].should == {'Bar'=>'1'}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roda-2.0.0 spec/plugin/delete_empty_headers_spec.rb
roda-1.3.0 spec/plugin/delete_empty_headers_spec.rb