spec/ruco/file_store_spec.rb in ruco-0.0.51 vs spec/ruco/file_store_spec.rb in ruco-0.0.52

- old
+ new

@@ -25,14 +25,19 @@ store.get('xxx').should == nil end it "drops least recently used key" do store.set('xxx', 1) + sleep(0.1) store.set('yyy', 1) + sleep(0.1) store.set('xxx', 1) + sleep(0.1) store.set('zzz', 1) + sleep(0.1) store.set('aaa', 1) + sleep(0.1) store.get('xxx').should == 1 store.get('yyy').should == nil end it "does not drop if used multiple times" do @@ -42,6 +47,6 @@ store.set('zzz', 1) store.set('zzz', 1) store.set('zzz', 1) store.get('xxx').should == 1 end -end \ No newline at end of file +end