test/test_custom_format.rb in json-schema-2.4.1 vs test/test_custom_format.rb in json-schema-2.5.0

- old
+ new

@@ -1,9 +1,8 @@ # encoding: utf-8 -require 'test/unit' -require File.dirname(__FILE__) + '/../lib/json-schema' +require File.expand_path('../test_helper', __FILE__) -class JSONSchemaCustomFormatTest < Test::Unit::TestCase +class JSONSchemaCustomFormatTest < Minitest::Test def setup @all_versions = ['draft1', 'draft2', 'draft3', 'draft4'] @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#",