test/hexapdf/test_dictionary.rb in hexapdf-0.14.0 vs test/hexapdf/test_dictionary.rb in hexapdf-0.14.1

- old
+ new

@@ -281,9 +281,14 @@ } refute(@obj.validate) @obj[:TestClass][:Nested][:Nested][:TestClass][:Inherited] = :symbol assert(@obj.validate) end + + it "makes sure validation works in special case where the dictionary is modified" do + @dict[:Array] = 5 + refute(@dict.validate {|_, _, object| object[:Boolean] }) + end end describe "delete" do it "deletes an entry from the underlying hash value and returns its value" do assert_equal(5, @dict.delete(:Other))