sorting cycles by their order
[tech-radar.git] / test / models / cycle-spec.js
index ecba3d1..d02deeb 100644 (file)
@@ -4,4 +4,10 @@ describe('tr.models.Cycle', function () {
 
     expect(cycle.name()).toEqual('My Cycle');
   });
+
+  it('has a order', function () {
+    var cycle = new tr.models.Cycle('My Cycle', 0);
+
+    expect(cycle.order()).toEqual(0);
+  });
 });