Skip to content

Commit

Permalink
Use equal matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroProtagonist authored and eregon committed Nov 24, 2020
1 parent 476aa59 commit d17635b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/kernel/pathname_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
path = Pathname('foo')
new_path = Pathname(path)

(path.object_id == new_path.object_id).should be_false
path.should_not.equal?(new_path)
end
end

Expand All @@ -20,7 +20,7 @@
path = Pathname('foo')
new_path = Pathname(path)

(path.object_id == new_path.object_id).should be_true
path.should.equal?(new_path)
end
end
end

0 comments on commit d17635b

Please sign in to comment.