blob: 76e81c4e5e0aacfeac66fce9cceb1da887ffaa0d (
plain)
1
2
3
4
5
6
7
8
|
require_relative '../../spec_helper'
require 'weakref'
describe "WeakRef#allocate" do
it "assigns nil as the reference" do
lambda { WeakRef.allocate.__getobj__ }.should raise_error(WeakRef::RefError)
end
end
|