[macruby-changes] [795] MacRuby/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jan 20 06:44:35 PST 2009
Revision: 795
http://trac.macosforge.org/projects/ruby/changeset/795
Author: eloy.de.enige at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090120/9fb68912/attachment.html>
More information about the macruby-changes
mailing list