Sha256: e927d975516e3afec59925651d81bc5fd24c3451a9e709a2da2435696a0cd7f0

Contents?: true

Size: 417 Bytes

Versions: 7

Compression:

Stored size: 417 Bytes

Contents

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

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

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