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