Revision: 3760 http://trac.macosforge.org/projects/ruby/changeset/3760 Author: lsansonetti@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