summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net-http/http/initialize_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net-http/http/initialize_spec.rb')
-rw-r--r--spec/ruby/library/net-http/http/initialize_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/net-http/http/initialize_spec.rb b/spec/ruby/library/net-http/http/initialize_spec.rb
index 78aa01e1aa..907314cb25 100644
--- a/spec/ruby/library/net-http/http/initialize_spec.rb
+++ b/spec/ruby/library/net-http/http/initialize_spec.rb
@@ -3,7 +3,7 @@ require 'net/http'
describe "Net::HTTP#initialize" do
it "is private" do
- Net::HTTP.should have_private_instance_method(:initialize)
+ Net::HTTP.private_instance_methods(false).should.include?(:initialize)
end
describe "when passed address" do
@@ -17,11 +17,11 @@ describe "Net::HTTP#initialize" do
end
it "sets the new Net::HTTP instance's port to the default HTTP port" do
- @net.port.should eql(Net::HTTP.default_port)
+ @net.port.should.eql?(Net::HTTP.default_port)
end
it "does not start the new Net::HTTP instance" do
- @net.started?.should be_false
+ @net.started?.should == false
end
end
@@ -36,11 +36,11 @@ describe "Net::HTTP#initialize" do
end
it "sets the new Net::HTTP instance's port to the passed port" do
- @net.port.should eql(3333)
+ @net.port.should.eql?(3333)
end
it "does not start the new Net::HTTP instance" do
- @net.started?.should be_false
+ @net.started?.should == false
end
end
end