Sha256: 005045f28740fa6cf9b057b7b3c89fb876f2e5f289ad976ba96bd713ec7a7895
Contents?: true
Size: 910 Bytes
Versions: 1
Compression:
Stored size: 910 Bytes
Contents
require File.dirname(__FILE__) + "/../test_helper" module Amazon module Associates class CacheTest < Test::Unit::TestCase include FilesystemTestHelper context "caching get" do setup do set_valid_caching_options(CACHE_TEST_PATH) end teardown do reset_cache end should "optionally allow for a caching strategy in configuration" do assert_nothing_raised do set_valid_caching_options(CACHE_TEST_PATH) end assert Amazon::Associates.caching_enabled? end should "raise an exception if a caching strategy is specified that is not found" do assert_raise Amazon::Associates::ConfigurationError do Amazon::Associates.configure do |options| options[:caching_strategy] = "foo" end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon-associates-0.6.3 | test/amazon/cache_test.rb |