spec/ruco/file_store_spec.rb in ruco-0.2.0.beta5 vs spec/ruco/file_store_spec.rb in ruco-0.2.0.beta6
- old
+ new
@@ -84,6 +84,12 @@
it "can clear unstored" do
store.clear
store.get('x').should == nil
end
+
+ it "can store pure strings" do
+ store = Ruco::FileStore.new(@folder, :keep => 3, :string => true)
+ store.set('xxx','yyy')
+ File.read(store.file('xxx')).should == 'yyy'
+ end
end