Sha256: 9defaa4c475b57cb647309e90d24771552e33016a601f04ae3252d1568db7ce4
Contents?: true
Size: 883 Bytes
Versions: 3
Compression:
Stored size: 883 Bytes
Contents
require File.dirname(__FILE__) + "/../test_helper" class AmazonAssociate::CacheTest < Test::Unit::TestCase include FilesystemTestHelper context "caching get" do setup do get_cache_directory get_valid_caching_options end teardown do destroy_cache_directory destroy_caching_options end should "optionally allow for a caching strategy in configuration" do assert_nothing_raised do AmazonAssociate::Request.configure do |options| options[:caching_strategy] = :filesystem end end end should "raise an exception if a caching strategy is specified that is not found" do assert_raises(AmazonAssociate::ConfigurationError) do AmazonAssociate::Request.configure do |options| options[:caching_strategy] = "foo" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems