我有一个助手执行:
def send_to_block(value, &block)
capture(value, &block)
end
编写测试时:
value_received = nil
send_to_block('test') do |value|
value_received = value
end
value_received.should == 'test'
我收到以下异常:
NameError: uninitialized constant Kernel::DISABLED
有任何想法吗?