Sha256: 302a9b7235efdda698ac326f645840f03ea70eb05fbdb5eb7bc32b1ac4dd3c7c

Contents?: true

Size: 330 Bytes

Versions: 13

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

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

13 entries across 13 versions & 2 rubygems

Version Path
grape-1.6.2 spec/grape/exceptions/unknown_options_spec.rb
grape-1.6.1 spec/grape/exceptions/unknown_options_spec.rb
grape-1.6.0 spec/grape/exceptions/unknown_options_spec.rb
grape-1.5.3 spec/grape/exceptions/unknown_options_spec.rb
grape-1.5.2 spec/grape/exceptions/unknown_options_spec.rb
grape-1.5.1 spec/grape/exceptions/unknown_options_spec.rb
grape-1.5.0 spec/grape/exceptions/unknown_options_spec.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/spec/grape/exceptions/unknown_options_spec.rb
grape-1.4.0 spec/grape/exceptions/unknown_options_spec.rb
grape-1.3.3 spec/grape/exceptions/unknown_options_spec.rb
grape-1.3.2 spec/grape/exceptions/unknown_options_spec.rb
grape-1.3.1 spec/grape/exceptions/unknown_options_spec.rb
grape-1.3.0 spec/grape/exceptions/unknown_options_spec.rb