Sha256: ce3a8782b01573644eae3ee32a848031209d9e9d6f3646c03b208a3695bcc48c

Contents?: true

Size: 324 Bytes

Versions: 9

Compression:

Stored size: 324 Bytes

Contents

# encoding: utf-8
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
      error.message.should include(
        "unknown validator: gt_10"
      )
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grape-0.7.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.6.1 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.6.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.5.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.4.1 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.4.0 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.3.2 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.3.1 spec/grape/exceptions/unknown_validator_spec.rb
grape-0.3.0 spec/grape/exceptions/unknown_validator_spec.rb