Revision: 795 http://trac.macosforge.org/projects/ruby/changeset/795 Author: eloy.de.enige@gmail.com Date: 2009-01-20 06:44:35 -0800 (Tue, 20 Jan 2009) Log Message: ----------- Forgot test_helper.rb; Removed some unnecessary code Modified Paths: -------------- MacRuby/trunk/test/hotcocoa/test_mappings.rb Added Paths: ----------- MacRuby/trunk/test/test_helper.rb Modified: MacRuby/trunk/test/hotcocoa/test_mappings.rb =================================================================== --- MacRuby/trunk/test/hotcocoa/test_mappings.rb 2009-01-20 14:41:34 UTC (rev 794) +++ MacRuby/trunk/test/hotcocoa/test_mappings.rb 2009-01-20 14:44:35 UTC (rev 795) @@ -72,11 +72,5 @@ def test_reload flunk 'Pending.' end - - private - - # Helper methods for test_framework_loaded - def self.foo_loaded; @foo_loaded; end - def self.foo_loaded=(val); @foo_loaded = val; end - + end \ No newline at end of file Added: MacRuby/trunk/test/test_helper.rb =================================================================== --- MacRuby/trunk/test/test_helper.rb (rev 0) +++ MacRuby/trunk/test/test_helper.rb 2009-01-20 14:44:35 UTC (rev 795) @@ -0,0 +1,11 @@ +require 'test/unit' + +class Test::Unit::TestCase + + class << self + def it(name, &block) + define_method("test_#{name}", &block) + end + end + +end \ No newline at end of file
participants (1)
-
source_changes@macosforge.org