Sha256: 680e8f5d88171f8fb8db64cf6bda0fc8c49f0b5ecb5429b716852e584fa1c132
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
module APIMatchers module HTTPStatusCode class BeUnauthorized < Base def expected_status_code 401 end def failure_message %Q{expected that '#{@http_status_code}' to be Unauthorized with the status '401'.} end def failure_message_when_negated %Q{expected that '#{@http_status_code}' to NOT be Unauthorized.} 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
3 entries across 3 versions & 1 rubygems