[macruby-changes] [3760] MacRuby/trunk/spec/macruby
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 12 20:33:48 PST 2010
Revision: 3760
http://trac.macosforge.org/projects/ruby/changeset/3760
Author: lsansonetti at apple.com
Date: 2010-03-12 20:33:48 -0800 (Fri, 12 Mar 2010)
Log Message:
-----------
moved a spec out of a fixture file (not sure why it was added there...)
Modified Paths:
--------------
MacRuby/trunk/spec/macruby/fixtures/method.rb
MacRuby/trunk/spec/macruby/language/objc_method_spec.rb
Modified: MacRuby/trunk/spec/macruby/fixtures/method.rb
===================================================================
--- MacRuby/trunk/spec/macruby/fixtures/method.rb 2010-03-13 04:31:56 UTC (rev 3759)
+++ MacRuby/trunk/spec/macruby/fixtures/method.rb 2010-03-13 04:33:48 UTC (rev 3760)
@@ -69,16 +69,3 @@
x + x2 == 42
end
end
-
-require File.dirname(__FILE__) + "/../spec_helper"
-
-describe "An Obj-C object" do
- before :each do
- @o = TestMethod.new
- end
-
- it "allows the use of #[] and #[]= as respective shortcuts to objectForKey: and setObject:forKey:" do
- @o['foo'] = 'ok'
- @o['foo'].should == 'ok'
- end
-end
Modified: MacRuby/trunk/spec/macruby/language/objc_method_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/language/objc_method_spec.rb 2010-03-13 04:31:56 UTC (rev 3759)
+++ MacRuby/trunk/spec/macruby/language/objc_method_spec.rb 2010-03-13 04:33:48 UTC (rev 3760)
@@ -691,3 +691,14 @@
@um.canUndo.should == false
end
end
+
+describe "An Obj-C object" do
+ before :each do
+ @o = TestMethod.new
+ end
+
+ it "allows the use of #[] and #[]= as respective shortcuts to objectForKey: and setObject:forKey:" do
+ @o['foo'] = 'ok'
+ @o['foo'].should == 'ok'
+ end
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100312/848991d5/attachment.html>
More information about the macruby-changes
mailing list