Sha256: 0e0813f55fcd7d26a6f4fb1805781eb0da6a5279b3d91ab86f9fe92158ff25fc

Contents?: true

Size: 680 Bytes

Versions: 2

Compression:

Stored size: 680 Bytes

Contents

module APIMatchers
  module HTTPStatusCode
    class BeBadRequest < Base
      def expected_status_code
        400
      end

      def failure_message
        %Q{expected that '#{@http_status_code}' to be a Bad Request with the status '400'.}
      end

      def failure_message_when_negated
        %Q{expected that '#{@http_status_code}' to NOT be a Bad Request with the status '400'.}
      end

      def description
        "be a Bad Request with the status '400'"
      end

      # RSpec 2 compatibility:
      alias_method :failure_message_for_should, :failure_message
      alias_method :failure_message_for_should_not, :failure_message_when_negated
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api_matchers-0.6.2 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.6.1 lib/api_matchers/http_status_code/be_bad_request.rb