Sha256: cfe5b1ae26aaa54e7f5ca059ab4ed064bb7b5e24165cf181fa4fb82d3a3ab8b9

Contents?: true

Size: 310 Bytes

Versions: 36

Compression:

Stored size: 310 Bytes

Contents

require 'test_helper'

module Schemacop
  module V2
    class EmptyHashTest < V2Test
      def test_empty_hash
        schema = Schema.new do
          type Hash
        end

        assert_nothing_raised { schema.validate!({}) }
        assert_verr { schema.validate!(foo: :bar) }
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
schemacop-3.0.29 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.28 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.27 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.26 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.25 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.24 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.23 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.22 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.21 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.20 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.19 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.18 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.17 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.16 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.15 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.14 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.13 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.12 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.11 test/unit/schemacop/v2/empty_test.rb
schemacop-3.0.10 test/unit/schemacop/v2/empty_test.rb