Get rid of Ruby 1.8.7 warning in tests
This commit is contained in:
parent
b26d588f74
commit
25ea67a9f7
|
@ -13,7 +13,7 @@ class ConfigTest < Test::Unit::TestCase
|
|||
@klass.run { |config| foo.call }
|
||||
value = @klass.last_proc.first
|
||||
assert value.is_a?(Proc)
|
||||
value.call
|
||||
value.call(nil)
|
||||
|
||||
assert @klass.last_proc.nil?
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue