我想確保我的清掃被稱爲適當的,所以我嘗試添加這樣的事情: it "should clear the cache" do
@foo = Foo.new(@create_params)
Foo.should_receive(:new).with(@create_params).and_return(@foo)
FooSweeper.should_receive(:afte
我想過期緩存的操作並想知道如何生成正確的引用。 #controller
caches_action :index, :layout => false
#generates this fragment which works fine
views/0.0.0.0:3000/article/someid/posts
#sweeper
...
expire_action article_p