Source: show | on GitHub
# File actionmailer/test/caching_test.rb, line 17 def setup super @store = ActiveSupport::Cache::MemoryStore.new @mailer = FragmentCachingMailer.new @mailer.perform_caching = true @mailer.cache_store = @store end
# File actionmailer/test/caching_test.rb, line 25 def test_fragment_cache_key assert_equal 'views/what a key', @mailer.fragment_cache_key('what a key') end