Sha256: d377648c06d221ae76e39ce254725c063551602d0846682c240bbf308cf5cc0e

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

require 'test_helper'

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

Version data entries

6 entries across 6 versions & 1 rubygems

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