Sha256: 62f320609abe86398a64fc82da036cc92f007b4a75827b19f356256f2cc6da74
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
require "spec_helper" require "zipcoder/cacher/memory" describe Zipcoder::Cacher::Memory do it "allows the default data file to be overridden" do # Load the new data new_data = "#{File.dirname(__FILE__)}/fixtures/files/temp_data.yml" Zipcoder.load_cache data: new_data # Check that it was loaded expect(Zipcoder.states.count).to eq(1) expect("PR".state_cities.count).to eq(3) # Empty the cache Zipcoder.cacher._empty_cache end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zipcoder-0.9.1 | spec/cacher_memory_spec.rb |