Sha256: e1a547f592b8d51bb628e307733ffd80b7797cd15e875490f93bab9ba85fa966

Contents?: true

Size: 409 Bytes

Versions: 7

Compression:

Stored size: 409 Bytes

Contents

module APIMatchers
  module HTTPStatusCode
    class BeUnauthorized < Base
      def expected_status_code
        401
      end

      def failure_message_for_should
        %Q{expected that '#{@http_status_code}' to be Unauthorized with the status '401'.}
      end

      def failure_message_for_should_not
        %Q{expected that '#{@http_status_code}' to NOT be Unauthorized.}
      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_unauthorized.rb
api_matchers-0.3.0 lib/api_matchers/http_status_code/be_unauthorized.rb
api_matchers-0.2.0 lib/api_matchers/http_status_code/be_unauthorized.rb
api_matchers-0.1.1 lib/api_matchers/http_status_code/be_unauthorized.rb
api_matchers-0.1.0 lib/api_matchers/http_status_code/be_unauthorized.rb
api_matchers-0.0.2 lib/api_matchers/http_status_code/be_unauthorized.rb
api_matchers-0.0.1 lib/api_matchers/http_status_code/be_unauthorized.rb