Sha256: 92ba20b2cb6a4219042f1bce1e440aa9a6a8a335d2db77553bada4e64f306c28

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
api_matchers-0.4.0 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.3.0 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.2.0 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.1.1 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.1.0 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.0.2 lib/api_matchers/http_status_code/be_internal_server_error.rb
api_matchers-0.0.1 lib/api_matchers/http_status_code/be_internal_server_error.rb