Sha256: 09e96af068bb2ec02e271490d48d73798f42ba0ea7e960423c1185045bfae10f

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

module APIMatchers
  module HTTPStatusCode
    class CreateResource < Base
      def expected_status_code
        201
      end

      def failure_message
        %Q{expected that '#{@http_status_code}' to be Created Resource with the status '201'.}
      end

      def failure_message_when_negated
        %Q{expected that '#{@http_status_code}' to NOT be Created Resource.}
      end

      def description
        "be Created Resource with the status '201'"
      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/create_resource.rb
api_matchers-0.6.1 lib/api_matchers/http_status_code/create_resource.rb