test/reference_resolver_test.rb in rgen-0.8.2 vs test/reference_resolver_test.rb in rgen-0.8.3

- old
+ new

@@ -1,12 +1,12 @@ $:.unshift File.join(File.dirname(__FILE__),"..","lib") -require 'test/unit' +require 'minitest/autorun' require 'rgen/metamodel_builder' require 'rgen/instantiator/reference_resolver' -class ReferenceResolverTest < Test::Unit::TestCase +class ReferenceResolverTest < MiniTest::Test class TestNode < RGen::MetamodelBuilder::MMBase has_attr 'name', String has_one 'other', TestNode has_many 'others', TestNode @@ -105,12 +105,12 @@ end def check_model(nodeA, nodeB, nodeC) assert_equal nodeB, nodeA.other assert_equal [], nodeA.others - assert_equal nil, nodeB.other + assert_nil nodeB.other assert_equal [nodeA, nodeC], nodeB.others - assert_equal nil, nodeC.other + assert_nil nodeC.other assert_equal [], nodeC.others end end