File: unknown_validator_spec.rb

package info (click to toggle)
ruby-grape 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,488 kB
  • sloc: ruby: 21,014; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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