test/test_schema_validator.rb in avro-1.9.2 vs test/test_schema_validator.rb in avro-1.10.0
- old
+ new
@@ -14,11 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require 'test_help'
-class TestSchema < Test::Unit::TestCase
+class TestSchemaValidator < Test::Unit::TestCase
def validate!(schema, value, options=nil)
Avro::SchemaValidator.validate!(schema, value, options)
end
def validate_simple!(schema, value)
@@ -275,10 +275,10 @@
assert_nothing_raised { validate_simple!(schema, 'what_ever' => nil) }
end
def test_validate_union_of_nil_and_record_inside_array
schema = hash_to_schema(
- name: 'this does not matter',
+ name: 'this_does_not_matter',
type: 'record',
fields: [
{
name: 'person',
type: {