Sha256: d217f04700c7460ef088886acabcacce788ba8a8e67d1838bd728768ad52b902

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

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

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

Version data entries

13 entries across 13 versions & 2 rubygems

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