Skip to content
Permalink
Browse files
Fix WeakRef specs in release mode (#4790)
  • Loading branch information
RX14 committed Aug 4, 2017
1 parent e85746f commit 0906a88
Showing 1 changed file with 3 additions and 0 deletions.
@@ -79,5 +79,8 @@ describe WeakRef do
State.count(:weak_foo_ref).should be > 0
instances.select { |wr| wr.value.nil? }.size.should be > 0
instances[-1].value.should_not be_nil

# Use `last` to stop the variable from being optimised away in release mode.
last.to_s
end
end

0 comments on commit 0906a88

Please sign in to comment.