Sha256: c1561c36019731f72731e97a69c89a81ffb1085949dce607d3d16f6761b930a4
Contents?: true
Size: 572 Bytes
Versions: 10
Compression:
Stored size: 572 Bytes
Contents
require 'test/unit' require 'feed_tools' class CacheTest < Test::Unit::TestCase def setup FeedTools.tidy_enabled = false end def test_database_connection # turn the cache on for this test FeedTools.feed_cache = FeedTools::DatabaseFeedCache unless FeedTools.feed_cache.nil? # Assumes that there is a database.yml file handy assert_equal(true, FeedTools.feed_cache_connected?) else puts "\nSkipping cache test since the cache is still disabled.\n" end # turn the cache back off FeedTools.feed_cache = nil end end
Version data entries
10 entries across 10 versions & 1 rubygems