Sha256: f4a75f0ffcc159729c6586fe137166b3325e7e1d0a8b7c39b024cd8e3ff33656

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 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: '#{content_type_response}'.}
      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

6 entries across 6 versions & 1 rubygems

Version Path
api_matchers-0.4.0 lib/api_matchers/headers/be_xml.rb
api_matchers-0.3.0 lib/api_matchers/headers/be_xml.rb
api_matchers-0.2.0 lib/api_matchers/headers/be_xml.rb
api_matchers-0.1.1 lib/api_matchers/headers/be_xml.rb
api_matchers-0.1.0 lib/api_matchers/headers/be_xml.rb
api_matchers-0.0.2 lib/api_matchers/headers/be_xml.rb