[macruby-changes] [1453] MacRuby/branches/experimental/spec/frozen/library/socket/basicsocket /getpeername_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 22 15:09:44 PDT 2009
Revision: 1453
http://trac.macosforge.org/projects/ruby/changeset/1453
Author: eloy.de.enige at gmail.com
Date: 2009-04-22 15:09:44 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
Removed not_compliant_on / deviates_on for JRuby getpeername behavior. JRuby's behavior has been brought in line with MRI with JRUBY-3563.
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/library/socket/basicsocket/getpeername_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/library/socket/basicsocket/getpeername_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/library/socket/basicsocket/getpeername_spec.rb 2009-04-22 22:09:33 UTC (rev 1452)
+++ MacRuby/branches/experimental/spec/frozen/library/socket/basicsocket/getpeername_spec.rb 2009-04-22 22:09:44 UTC (rev 1453)
@@ -13,19 +13,11 @@
@client.close unless @client.closed?
end
- not_compliant_on :jruby do
- it "returns the sockaddr of the other end of the connection" do
- server_sockaddr = Socket.pack_sockaddr_in(SocketSpecs.port, "127.0.0.1")
- @client.getpeername.should == server_sockaddr
- end
+ it "returns the sockaddr of the other end of the connection" do
+ server_sockaddr = Socket.pack_sockaddr_in(SocketSpecs.port, "127.0.0.1")
+ @client.getpeername.should == server_sockaddr
end
- deviates_on :jruby do
- it "returns the sockaddr of the other end of the connection" do
- @client.getpeername.should == "/127.0.0.1:#{SocketSpecs.port}"
- end
- end
-
# Catch general exceptions to prevent NotImplementedError
it "raises an error if socket's not connected" do
lambda { @server.getpeername }.should raise_error(Exception)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090422/aa43a2bd/attachment.html>
More information about the macruby-changes
mailing list