Skip to content
Browse files

un-DRY the multiple complex arguments test

catches a cache bug in 1.8.6 related to unique object compares
  • Loading branch information...
1 parent e77f867 commit 638e1db377947484727d87760f883ec5e769839b @kyledrake kyledrake committed with Jul 6, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/tilt_cache_test.rb
View
5 test/tilt_cache_test.rb
@@ -14,10 +14,9 @@ class TiltCacheTest < Test::Unit::TestCase
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

0 comments on commit 638e1db

Please sign in to comment.
Something went wrong with that request. Please try again.