Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit d796d83

Browse files
author
Brian Durand
committed
Fix broken test in Ruby 2.0.0
1 parent 9ddb4a1 commit d796d83

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

HISTORY.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.0.5
2+
3+
- Fix breaking test in ruby 2.0
4+
15
1.0.4
26

37
- Support for BasicObject in pure ruby weak reference implementation.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

test/weak_reference_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_inspect
4848
def test_basic_object_does_not_throw_exception
4949
obj = BasicObject.new
5050
ref = Ref::WeakReference.new(obj)
51-
assert_nil ref.object
51+
assert_equal obj, ref.object
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)