Get rid of Ruby 1.8.7 warning in tests

This commit is contained in:
Mitchell Hashimoto 2011-01-08 21:22:16 -08:00
parent b26d588f74
commit 25ea67a9f7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class ConfigTest < Test::Unit::TestCase
@klass.run { |config| foo.call } @klass.run { |config| foo.call }
value = @klass.last_proc.first value = @klass.last_proc.first
assert value.is_a?(Proc) assert value.is_a?(Proc)
value.call value.call(nil)
assert @klass.last_proc.nil? assert @klass.last_proc.nil?
end end