Permalink
Browse files

Add failing spec for BasicFile with :skip_expires => true

Signed-off-by: Yehuda Katz <wycats@gmail.com>
  • Loading branch information...
1 parent 17f8130 commit f403660ae56d6515ee28f9d3f3873c1c65f89b71 @jarib jarib committed with Jul 27, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/moneta_basic_file_spec.rb
@@ -41,6 +41,18 @@
end
end
+ describe "without expires" do
+ before(:each) do
+ @cache = Moneta::BasicFile.new(:path => File.join(File.dirname(__FILE__), "basic_file_cache"), :skip_expires => true)
+ @cache.clear
+ end
+
+ it "should read and write values" do
+ @cache[:foo] = 'bar'
+ @cache[:foo].should == 'bar'
+ end
+ end
+
after(:all) do
FileUtils.rm_rf(File.join(File.dirname(__FILE__), "basic_file_cache"))
end

0 comments on commit f403660

Please sign in to comment.