aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/net/http/http/port_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/net/http/http/port_spec.rb')
-rw-r--r--spec/rubyspec/library/net/http/http/port_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/rubyspec/library/net/http/http/port_spec.rb b/spec/rubyspec/library/net/http/http/port_spec.rb
new file mode 100644
index 0000000000..a916f722bf
--- /dev/null
+++ b/spec/rubyspec/library/net/http/http/port_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../../../../../spec_helper', __FILE__)
+require 'net/http'
+
+describe "Net::HTTP#port" do
+ it "returns the current port number" do
+ net = Net::HTTP.new("localhost", 3333)
+ net.port.should eql(3333)
+ end
+end