test/tilt_cache_test.rb in tilt-1.0.1 vs test/tilt_cache_test.rb in tilt-1.1

- old
+ new

@@ -12,13 +12,12 @@ assert_same template, result end test "caching with multiple complex arguments to #fetch" do template = nil - args = ['hello', {:foo => 'bar', :baz => 'bizzle'}] - result = @cache.fetch(*args) { template = Tilt::StringTemplate.new {''} } + result = @cache.fetch('hello', {:foo => 'bar', :baz => 'bizzle'}) { template = Tilt::StringTemplate.new {''} } assert_same template, result - result = @cache.fetch(*args) { fail 'should be cached' } + result = @cache.fetch('hello', {:foo => 'bar', :baz => 'bizzle'}) { fail 'should be cached' } assert_same template, result end test "clearing the cache with #clear" do template, other = nil