[macruby-changes] [3759] MacRuby/trunk/spec/macruby/core

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 12 20:31:56 PST 2010


Revision: 3759
          http://trac.macosforge.org/projects/ruby/changeset/3759
Author:   lsansonetti at apple.com
Date:     2010-03-12 20:31:56 -0800 (Fri, 12 Mar 2010)
Log Message:
-----------
refreshed specs to follow the new String changes

Modified Paths:
--------------
    MacRuby/trunk/spec/macruby/core/cftype_spec.rb
    MacRuby/trunk/spec/macruby/core/string_spec.rb

Modified: MacRuby/trunk/spec/macruby/core/cftype_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/cftype_spec.rb	2010-03-13 04:31:34 UTC (rev 3758)
+++ MacRuby/trunk/spec/macruby/core/cftype_spec.rb	2010-03-13 04:31:56 UTC (rev 3759)
@@ -20,14 +20,14 @@
 
   it "toll-free bridged to an Objective-C type behaves like the Objective-C version" do
     s = CFStringCreateWithCString(nil, "foo", KCFStringEncodingUTF8)
-    s.class.should == NSString
+    s.class.should == String
     s.should == 'foo'
     CFRelease(s)
   end
 
   it "can be substitued with the toll-free bridged equivalent" do
     s = CFStringCreateMutableCopy(nil, 0, "foo")
-    s.class.should == NSMutableString
+    s.class.should == String
     s.should == 'foo'
     CFRelease(s)
   end

Modified: MacRuby/trunk/spec/macruby/core/string_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/string_spec.rb	2010-03-13 04:31:34 UTC (rev 3758)
+++ MacRuby/trunk/spec/macruby/core/string_spec.rb	2010-03-13 04:31:56 UTC (rev 3759)
@@ -1,8 +1,9 @@
 require File.dirname(__FILE__) + "/../spec_helper"
 
 describe "The String class" do
-  it "is an alias to NSMutableString" do
-    String.should == NSMutableString
+  it "is a direct subclass of NSMutableString" do
+    String.class.should == Class
+    String.superclass.should == NSMutableString
   end
 
   it "can be subclassed and later instantiated" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100312/5b61c938/attachment.html>


More information about the macruby-changes mailing list