Sha256: 81b294181cf6365e27a4cc1f85a58ad5b145e58fb3f1483d3480cd9477486ff3

Contents?: true

Size: 353 Bytes

Versions: 21

Compression:

Stored size: 353 Bytes

Contents

require 'rest-core/test'

describe RC::DefaultHeaders do
  app = RC::DefaultHeaders.new(RC::Dry.new, 'a' => 'b')

  would 'also merge the very default headers' do
    app.call('headers' => {'b' => 'c'},
             RC::REQUEST_HEADERS => {'c' => 'd'}) do |r|
      r[RC::REQUEST_HEADERS].should.eq 'a' => 'b', 'b' => 'c', 'c' => 'd'
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rest-core-4.0.1 test/test_default_headers.rb
rest-core-4.0.0 test/test_default_headers.rb
rest-core-3.6.0 test/test_default_headers.rb
rest-core-3.5.92 test/test_default_headers.rb
rest-core-3.5.91 test/test_default_headers.rb
rest-core-3.5.9 test/test_default_headers.rb
rest-core-3.5.8 test/test_default_headers.rb
rest-core-3.5.7 test/test_default_headers.rb
rest-core-3.5.6 test/test_default_headers.rb
rest-core-3.5.5 test/test_default_headers.rb
rest-core-3.5.4 test/test_default_headers.rb
rest-core-3.5.3 test/test_default_headers.rb
rest-core-3.5.2 test/test_default_headers.rb
rest-core-3.5.1 test/test_default_headers.rb
rest-core-3.5.0 test/test_default_headers.rb
rest-core-3.4.1 test/test_default_headers.rb
rest-core-3.4.0 test/test_default_headers.rb
rest-core-3.3.3 test/test_default_headers.rb
rest-core-3.3.2 test/test_default_headers.rb
rest-core-3.3.1 test/test_default_headers.rb