Sha256: b02aa89a9b891855e0616f4880713bde3894c5b4469f4336b7f06c41a91dfff7
Contents?: true
Size: 879 Bytes
Versions: 4
Compression:
Stored size: 879 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
4 entries across 4 versions & 2 rubygems