Sha256: 84be05b2d2f02591739561e2b14f67279c67d7e4417f3b806abe07171088393f

Contents?: true

Size: 308 Bytes

Versions: 11

Compression:

Stored size: 308 Bytes

Contents

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

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_validator_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.5 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.4 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.3 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.2 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.1 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.2.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.1.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.0.3 spec/grape/exceptions/unknown_validator_spec.rb
grape-1.0.2 spec/grape/exceptions/unknown_validator_spec.rb