Sha256: 2fc1563f48a33cf23856d102dfd368e594c31440d65006f94064c13915444d9c

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

require 'spec_helper'

describe 'expect_status' do
	it 'should verify correct status code' do
		mock_get('simple_get')
		get '/simple_get'
		expect_status(200)
	end

	it 'should fail when incorrect status code is returned' do
		mock_get('simple_get')
		get '/simple_get'
		expect{expect_status(123)}.to raise_error
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
airborne-0.0.21 spec/airborne/expect_status_spec.rb
airborne-0.0.20 spec/airborne/expect_status_spec.rb
airborne-0.0.19 spec/airborne/expect_status_spec.rb
airborne-0.0.18 spec/airborne/expect_status_spec.rb
airborne-0.0.17 spec/airborne/expect_status_spec.rb
airborne-0.0.16 spec/airborne/expect_status_spec.rb
airborne-0.0.15 spec/airborne/expect_status_spec.rb
airborne-0.0.14 spec/airborne/expect_status_spec.rb