spec/read_state_spec.rb in rhosync-2.1.7 vs spec/read_state_spec.rb in rhosync-2.1.10
- old
+ new
@@ -20,6 +20,15 @@
it "should delete read_state from db" do
ReadState.delete(@a_fields[:name])
Store.db.keys("read_state*").should == []
end
+
+ it "should delete read_state from source" do
+ time = Time.now.to_i
+ @s.read_state.refresh_time = time
+ @s.load_read_state.refresh_time.should == time
+
+ @s.delete_user_read_state
+ @s.load_read_state.should == nil
+ end
end
\ No newline at end of file