Sha256: 9b06057ff0ed18271754844ebf1b53cf80c50112014821a36ddbdcdda7b8e670

Contents?: true

Size: 310 Bytes

Versions: 11

Compression:

Stored size: 310 Bytes

Contents

require 'spec_helper'

describe Grape::Exceptions::MissingOption do
  describe '#message' do
    let(:error) do
      described_class.new(:path)
    end

    it 'contains the problem in the message' do
      expect(error.message).to include(
        'You must specify :path 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/missing_option_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/exceptions/missing_option_spec.rb
grape-1.2.5 spec/grape/exceptions/missing_option_spec.rb
grape-1.2.4 spec/grape/exceptions/missing_option_spec.rb
grape-1.2.3 spec/grape/exceptions/missing_option_spec.rb
grape-1.2.2 spec/grape/exceptions/missing_option_spec.rb
grape-1.2.1 spec/grape/exceptions/missing_option_spec.rb
grape-1.2.0 spec/grape/exceptions/missing_option_spec.rb
grape-1.1.0 spec/grape/exceptions/missing_option_spec.rb
grape-1.0.3 spec/grape/exceptions/missing_option_spec.rb
grape-1.0.2 spec/grape/exceptions/missing_option_spec.rb