Modified: MacRuby/trunk/spec/macruby/core/pointer_spec.rb (2822 => 2823)
--- MacRuby/trunk/spec/macruby/core/pointer_spec.rb 2009-10-16 01:23:45 UTC (rev 2822)
+++ MacRuby/trunk/spec/macruby/core/pointer_spec.rb 2009-10-16 01:24:02 UTC (rev 2823)
@@ -111,4 +111,11 @@
lambda { pointer[0] = Object.new }.should raise_error(TypeError)
end
end
+
+ it "can assign an retrieve CF type objects" do
+ ptr = Pointer.new('^{__CFError}')
+ ptr[0].should == nil
+ CFURLResourceIsReachable(NSURL.URLWithString('http://doesnotexistomgwtf.be'), ptr).should == false
+ ptr[0].class.should == NSCFError
+ end
end