summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net-http/httpresponse/entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net-http/httpresponse/entity_spec.rb')
-rw-r--r--spec/ruby/library/net-http/httpresponse/entity_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/library/net-http/httpresponse/entity_spec.rb b/spec/ruby/library/net-http/httpresponse/entity_spec.rb
index ca8c4b29c0..d2201db37b 100644
--- a/spec/ruby/library/net-http/httpresponse/entity_spec.rb
+++ b/spec/ruby/library/net-http/httpresponse/entity_spec.rb
@@ -1,7 +1,9 @@
require_relative '../../../spec_helper'
require 'net/http'
-require_relative 'shared/body'
describe "Net::HTTPResponse#entity" do
- it_behaves_like :net_httpresponse_body, :entity
+ it "is an alias of Net::HTTPResponse#body" do
+ Net::HTTPResponse.instance_method(:entity).should ==
+ Net::HTTPResponse.instance_method(:body)
+ end
end