spec/cache_spec.rb in api_cache-0.2.3 vs spec/cache_spec.rb in api_cache-0.3.0

- old
+ new

@@ -31,6 +31,12 @@ sleep 1 cache.state.should == :refetch sleep 1 cache.state.should == :invalid end + + it "should initially have invalid state" do + cache = APICache::Cache.new('foo', @options) + cache.state.should == :invalid + end + end