Sha256: 2189222bd9d1704f2c7bebc1b67e7fe8cf35344dcde845e88416fa43a08c0c28

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

require 'spec_helper'

describe 'put' do
  it 'should allow testing on put requests w/no body' do
    mock_put('simple_put')
    put '/simple_put'
    expect_json_types(status: :string, someNumber: :int)
  end

  it 'should allow testing on put requests w/empty body' do
    mock_put('simple_put')
    put '/simple_put', {}
    expect_json_types(status: :string, someNumber: :int)
  end

  it 'should allow testing on put requests w/body' do
    mock_put('simple_put')
    put '/simple_put', {:key=>:value}
    expect_json_types(status: :string, someNumber: :int)
  end

  it 'should allow testing on put requests w/body, empty string' do
    mock_put('simple_put')
    put '/simple_put', ''
    expect_json_types(status: :string, someNumber: :int)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
airborne-0.3.7 spec/airborne/put_spec.rb
airborne-0.3.6 spec/airborne/put_spec.rb
airborne-0.3.5 spec/airborne/put_spec.rb