summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-29 21:45:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-29 21:45:59 +0900
commit9f648262f9372cbf21754a411a68e178f0fd8feb (patch)
tree95447928c712aaa7eac03c6f7cc0f8894762c82b /spec
parentcbb7dc21a823e8b09341860d8737ed24ee1ce1b8 (diff)
Fix predicate to assert if object is same
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb b/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb
index 809d087161..9fc4e8c201 100644
--- a/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb
+++ b/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb
@@ -89,7 +89,7 @@ with_feature :ancillary_data, :pktinfo do
end
it 'is not the same object as the input Addrinfo' do
- @addr.should_not == @source
+ @addr.should_not.equal? @source
end
end
@@ -109,7 +109,7 @@ with_feature :ancillary_data, :pktinfo do
end
it 'is not the same object as the input Addrinfo' do
- @addr.should_not == @dest
+ @addr.should_not.equal? @dest
end
end
end