[macruby-changes] [4897] MacRuby/trunk/spec/macruby/core/sandbox/shared/no_network.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 9 01:38:25 PST 2010


Revision: 4897
          http://trac.macosforge.org/projects/ruby/changeset/4897
Author:   watson1978 at gmail.com
Date:     2010-11-09 01:38:23 -0800 (Tue, 09 Nov 2010)
Log Message:
-----------
modified the spec of Sandbox.

Modified Paths:
--------------
    MacRuby/trunk/spec/macruby/core/sandbox/shared/no_network.rb

Modified: MacRuby/trunk/spec/macruby/core/sandbox/shared/no_network.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/sandbox/shared/no_network.rb	2010-11-08 22:03:32 UTC (rev 4896)
+++ MacRuby/trunk/spec/macruby/core/sandbox/shared/no_network.rb	2010-11-09 09:38:23 UTC (rev 4897)
@@ -1,7 +1,7 @@
 describe :sandbox_no_network, :shared => true do
   
   it "disallows DNS requests through NSHost" do
-    add_line 'print NSHost.hostWithName("apple.com").address'
+    add_line 'begin; print NSHost.hostWithName("apple.com").address; rescue; print ""; end'
     result.should be_empty
   end
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101109/c773e5f0/attachment.html>


More information about the macruby-changes mailing list