spec/tekeya/activity_spec.rb in tekeya-0.0.7 vs spec/tekeya/activity_spec.rb in tekeya-0.0.9

- old
+ new

@@ -102,11 +102,14 @@ describe "activity deletion" do before :each do @act1.destroy @act3.destroy @act4.destroy - @act5.destroy + + Timecop.travel(Time.at(20.minutes)) do + @act5.destroy + end end it "should remove the activity from the cache when its deleted from the db" do @act1.cached_in_redis?.should_not == true @act3.cached_in_redis?.should_not == true @@ -165,6 +168,6 @@ id_array.include?(@act4.id.to_s).should == true id_array.include?(@act5.id.to_s).should == true end end end -end \ No newline at end of file +end