Sha256: e763bec166a638820b2840e9c2bdbe0d8c9937b0ce9e399c1b34bef01f37e787

Contents?: true

Size: 691 Bytes

Versions: 2

Compression:

Stored size: 691 Bytes

Contents

module APIMatchers
  module HTTPStatusCode
    class BeInternalServerError < Base
      def expected_status_code
        500
      end

      def failure_message
        %Q{expected that '#{@http_status_code}' to be Internal Server Error with the status '500'.}
      end

      def failure_message_when_negated
        %Q{expected that '#{@http_status_code}' to NOT be Internal Server Error.}
      end

      def description
        "be Internal Server Error with the status '500'"
      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_internal_server_error.rb
api_matchers-0.6.1 lib/api_matchers/http_status_code/be_internal_server_error.rb