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