Sha256: 1393bff8298d6acc1e3ecf9da64766776b0937c0ce81b8c4966654acf9b007fd
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 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 it 'should translate symbol codes to whatever is appropriate for the request' do mock_get('simple_get') get '/simple_get' expect_status(:ok) expect_status(200) expect_status('200') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
airborne-0.1.15 | spec/airborne/expectations/expect_status_spec.rb |