diff --git a/tests/microdata/step01.js b/tests/microdata/step01.js index 2ac7e23..e467c1c 100644 --- a/tests/microdata/step01.js +++ b/tests/microdata/step01.js @@ -30,7 +30,7 @@ test("Model", function() { test("attr exists", function() { ok(attr, "attr exists"); - ok(typeof(attr) === 'function', "attr is a macro"); + ok(Ember.typeOf(attr) === 'function', "attr is a macro"); }); test("store exists", function() { diff --git a/tests/microdata/step02.js b/tests/microdata/step02.js index cc02582..80c3556 100644 --- a/tests/microdata/step02.js +++ b/tests/microdata/step02.js @@ -27,3 +27,7 @@ test("initializer defined", function() { test("controllers have access to the store", function() { ok(lookup('controller:article').get('store') instanceof Store); }); + +test("routes have access to the store also", function() { + ok(lookup('route:article').get('store') instanceof Store); +});