Sha256: d4a52deb5ad26225762b6b5ac93fc60eb116b360fe73c095f043e5a2f5264553

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

require 'rspec-api/matchers'

module DSL
  module Request
    extend ActiveSupport::Concern

    module ClassMethods
      def should_match_status_expectations(status_code)
        it { expect(response_status).to be_status status_code }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-api-0.2.0 lib/rspec-api/dsl/request/status.rb
rspec-api-0.1.2 lib/rspec-api/dsl/request/status.rb
rspec-api-0.1.1 lib/rspec-api/dsl/request/status.rb
rspec-api-0.1.0 lib/rspec-api/dsl/request/status.rb