                 activities.length.should.equal 2
                 done()
 
-    it "The second time it should store one more activity", (done) =>
+    it "The second time it should store two more activities", (done) =>
         connector.fetch apikey: 'testkey', (err) =>
             should.not.exist err
 
             connector.models.activities.all (err, activities) =>
                 should.not.exist err
-                activities.length.should.equal 3
+                activities.length.should.equal 4
                 done()
+
+    it "The third time it should not store any new activities", (done) =>
+        connector.fetch apikey: 'testkey', (err) =>
+            should.not.exist err
+
+            connector.models.activities.all (err, activities) =>
+                should.not.exist err
+                activities.length.should.equal 4
+                done()


start = moment().subtract('years', 10).format 'YYYY-MM-DD'
end = moment().add('days', 1).format 'YYYY-MM-DD'


# Mock rescue time server.

    .reply 200,
        rows: [
          [ '2013-12-22T00:00:00', 7, 1, 'npmjs.org', 'Marketing', 2 ]
          [ "#{now}T00:00:00", 7, 1, 'npmjs.org', 'Marketing', 2 ]
        ]
    .get(basepath + "&restrict_begin=#{now}&restrict_end=#{end}")
    .reply 200,
        rows: [
          [ "#{now}T00:00:00", 7, 1, 'npmjs.org', 'Marketing', 2 ]
        ]

describe "When I fetch rescuetime data", ->
    before (done) ->
