Sha256: 8f247776492572436417a7053df9e02668bf68d0b19e0bfeafce364e903e0f13

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

module APIMatchers
  module Headers
    class BeXML < Base
      def expected_content_type
        'application/xml; charset=utf-8'
      end

      def failure_message_for_should
        %Q{expected a XML response with '#{expected_content_type}'. Got: '#{@actual}'.}
      end

      def failure_message_for_should_not
        %Q{expected to not be a XML response. Got: '#{expected_content_type}'.}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_matchers-0.0.1 lib/api_matchers/headers/be_xml.rb