Sha256: dd01994b85069c511ab85596548cb53d9ca95ed5b31d06bd0519307bdc1105ad
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
require "spec_helper" describe MusicBrainz::Deprecated::CacheConfig do before(:all) { @old_cache_path = MusicBrainz.config.cache_path } before(:each) { MusicBrainz.config.cache_path = nil } after(:all) { MusicBrainz.config.cache_path = @old_cache_path } it "allows deprecated use of cache_path" do MusicBrainz.config.cache_path = "test1" expect(MusicBrainz::Tools::Cache.cache_path).to eq "test1" expect(MusicBrainz.cache_path).to eq "test1" end it "allows deprecated use of cache_path=" do MusicBrainz::Tools::Cache.cache_path = "test2" expect(MusicBrainz.config.cache_path).to eq "test2" MusicBrainz.cache_path = "test3" expect(MusicBrainz.config.cache_path).to eq "test3" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
musicbrainz-0.8.0 | spec/deprecated/cache_config_spec.rb |