lib/test/unit/given/test_that.rb in test_unit-given-0.1.0 vs lib/test/unit/given/test_that.rb in test_unit-given-0.1.1

- old
+ new

@@ -50,11 +50,15 @@ end private def make_up_name(some_proc) - name,location = some_proc.source_location - "anonymous test at #{name}, line #{location}" + if some_proc.respond_to? :source_location + name,location = some_proc.source_location + "anonymous test at #{name}, line #{location}" + else + "anonymous test for proc #{some_proc.object_id}" + end end end end end