test/test_custom_format.rb in json-schema-2.3.0 vs test/test_custom_format.rb in json-schema-2.4.0

- old
+ new

@@ -3,10 +3,10 @@ require File.dirname(__FILE__) + '/../lib/json-schema' class JSONSchemaCustomFormatTest < Test::Unit::TestCase def setup @all_versions = ['draft1', 'draft2', 'draft3', 'draft4'] - @format_proc = -> value { raise JSON::Schema::CustomFormatError.new("must be 42") unless value == "42" } + @format_proc = lambda { |value| raise JSON::Schema::CustomFormatError.new("must be 42") unless value == "42" } @schema_4 = { "$schema" => "http://json-schema.org/draft-04/schema#", "properties" => { "a" => { "type" => "string",