unittests/tests/serializers/mockTweetSerializer.js
branchnew-model
changeset 924 64c2eaafe5e2
parent 923 b3ee7d1b472a
child 925 28efc97b5d78
--- a/unittests/tests/serializers/mockTweetSerializer.js	Fri Jun 29 16:22:52 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-function test_mockTweetSerializer() {
-  module("Mock Tweet Serializer basic tests");
-  
-  test("init the serializer with a DataLoader and an url", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockTweetSerializer(dt, "http://google.com");
-      equal( ser._DataLoader, dt, "The dataloader reference is copied to the object." );
-      equal( ser._url, "http://google.com", "The url has been copied as well." );
-      ok(ser._data, "the mock data is defined");
-  });
-  
-  test("check that the serialize and deserialize abstract functions are defined", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockTweetSerializer(dt);
-      notEqual(ser.serialize, undefined, ".serialize is defined");
-      notEqual(ser.deserialize, undefined, ".deserialize is defined");
-  });
-  
-  test("check that the callback is called", function() {
-      var dt = new IriSP.DataLoader();
-      var ser = new IriSP.MockTweetSerializer(dt);
-      var spy = this.spy();
-      ser.sync(spy);
-      ok(spy.called, "the callback has been called");
-  });
-
-};
\ No newline at end of file