Sha256: 7c89c403f59467add161f94ee3d80b75a458f0d3e44a77029a0c64da088322ff

Contents?: true

Size: 263 Bytes

Versions: 9

Compression:

Stored size: 263 Bytes

Contents

require 'spec_helper'

describe 'head' do
  it 'should allow testing on head requests' do
    mock_head('simple_head', {'foo' => 'foo'})
    head '/simple_head', {}
    expect_status(200)
    expect_header('foo', 'foo')
    expect(json_body).to be(nil)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
airborne-0.1.12 spec/airborne/head_spec.rb
airborne-0.1.11 spec/airborne/head_spec.rb
airborne-0.1.10 spec/airborne/head_spec.rb
airborne-0.1.9 spec/airborne/head_spec.rb
airborne-0.1.8 spec/airborne/head_spec.rb
airborne-0.1.7 spec/airborne/head_spec.rb
airborne-0.1.6 spec/airborne/head_spec.rb
airborne-0.1.5 spec/airborne/head_spec.rb
airborne-0.1.4 spec/airborne/head_spec.rb