Revision
3759
Author
lsansonetti@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

Diff

Modified: MacRuby/trunk/spec/macruby/core/cftype_spec.rb (3758 => 3759)


--- 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 (3758 => 3759)


--- 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