Sha256: 9efea53924770090c70552025c72a9c3ca1726c837bc1c10d673d068004ed9da

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

describe Grape::Exceptions::InvalidFormatter do
  describe '#message' do
    let(:error) do
      described_class.new(String, 'xml')
    end

    it 'contains the problem in the message' do
      expect(error.message).to include(
        'cannot convert String to xml'
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-1.8.0 spec/grape/exceptions/invalid_formatter_spec.rb
grape-1.7.1 spec/grape/exceptions/invalid_formatter_spec.rb
grape-1.7.0 spec/grape/exceptions/invalid_formatter_spec.rb