Sha256: c7fbafa4e4baf23ef744dae143caaa5653c1cb49d9d3ca92a41e44d7b96b3af9
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require 'active_support' require 'rspec-api/matchers' module DSL module Request extend ::ActiveSupport::Concern module ClassMethods # Creates an example group for expectations on the HTTP status code of the # last API request and runs it to verify that it matches +status+. def should_respond_with_status(status) context 'responds with a status code that' do it { expect(response).to have_status status } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-api-0.4.0 | lib/rspec-api/dsl/request/status.rb |