Sha256: 314ac7edc3dec67ccb8d3e53b6eb71a45dc87f913a75f2ab8bfcbab83c7214d5

Contents?: true

Size: 244 Bytes

Versions: 6

Compression:

Stored size: 244 Bytes

Contents

require 'test_helper'

module Schemacop
  class ValidatorNilTest < Minitest::Test
    def test_basic
      s = Schema.new do
        type :nil
      end
      assert_nil s.validate! nil
      assert_verr { s.validate! false }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
schemacop-2.3.2 test/validator_nil_test.rb
schemacop-2.3.1 test/validator_nil_test.rb
schemacop-2.3.0 test/validator_nil_test.rb
schemacop-2.2.0 test/validator_nil_test.rb
schemacop-2.1.0 test/validator_nil_test.rb
schemacop-2.0.0 test/validator_nil_test.rb