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

Version Path
feedtools-0.2.10 test/cache_test.rb
feedtools-0.2.11 test/cache_test.rb
feedtools-0.2.2 test/cache_test.rb
feedtools-0.2.9 test/cache_test.rb
feedtools-0.2.3 test/cache_test.rb
feedtools-0.2.4 test/cache_test.rb
feedtools-0.2.8 test/cache_test.rb
feedtools-0.2.5 test/cache_test.rb
feedtools-0.2.7 test/cache_test.rb
feedtools-0.2.6 test/cache_test.rb