Sha256: 4fe0aaeab517e888d1eae0af7389f9a44f8a2cd5cbb382289a277542b0e1a9b9

Contents?: true

Size: 299 Bytes

Versions: 11

Compression:

Stored size: 299 Bytes

Contents

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

11 entries across 11 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/grape/exceptions/unknown_options_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.5 spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.4 spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.3 spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.2 spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.1 spec/grape/exceptions/unknown_options_spec.rb
grape-1.2.0 spec/grape/exceptions/unknown_options_spec.rb
grape-1.1.0 spec/grape/exceptions/unknown_options_spec.rb
grape-1.0.3 spec/grape/exceptions/unknown_options_spec.rb
grape-1.0.2 spec/grape/exceptions/unknown_options_spec.rb