spec/view/view_caching_spec.rb in garterbelt-0.0.9 vs spec/view/view_caching_spec.rb in garterbelt-0.1.0

- old
+ new

@@ -122,19 +122,19 @@ it 'adds the Cache object to the render buffer' do @view.cache("foo_you") do puts "bar" end - cache = @view.buffer.last + cache = @view._buffer.last cache.is_a?(Garterbelt::Cache).should be_true cache.key.should == 'cached_foo_you' end it 'passes on correctly the :expires_in option' do @view.cache("my_key", :expires_in => 24*3600) do puts "foo" end - cache = @view.buffer.last + cache = @view._buffer.last cache.expires_in.should == 24*3600 end end end \ No newline at end of file