aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScenarioSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ScenarioSpec.js')
-rw-r--r--test/ScenarioSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js
index 7ea3192d..ede49a49 100644
--- a/test/ScenarioSpec.js
+++ b/test/ScenarioSpec.js
@@ -42,10 +42,10 @@ describe("ScenarioSpec: configuration", function(){
it("should take location object", function(){
var url = "http://server/#?book=moby";
var scope = compile("<div>{{$location}}</div>");
- var $location = scope.$get('$location');
+ var $location = scope.$location;
expect($location.hashSearch.book).toBeUndefined();
scope.$browser.setUrl(url);
- scope.$browser.fireUrlWatchers();
+ scope.$browser.poll();
expect($location.hashSearch.book).toEqual('moby');
});
});