Sha256: cccea9ad5af1cd5bbb0cc5e5e9e61edee5f5ce6fa2d1dffe5b6c6c9cbdb74fa0

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

describe Grape::Exceptions::UnknownOptions do
  describe '#message' do
    let(:error) do
      described_class.new(%i[a b])
    end

    it 'contains the problem in the message' do
      expect(error.message).to include(
        'unknown options: '
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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