Sha256: bfb4b9df4072b22333703cb335c1a4d63a514e536549d8148b0053f1f59e4c57

Contents?: true

Size: 431 Bytes

Versions: 7

Compression:

Stored size: 431 Bytes

Contents

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

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

      def failure_message_for_should_not
        %Q{expected that '#{@http_status_code}' to NOT be a Bad Request with the status '400'.}
      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_bad_request.rb
api_matchers-0.3.0 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.2.0 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.1.1 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.1.0 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.0.2 lib/api_matchers/http_status_code/be_bad_request.rb
api_matchers-0.0.1 lib/api_matchers/http_status_code/be_bad_request.rb