aboutsummaryrefslogtreecommitdiffstats
path: root/test/ResourceSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ResourceSpec.js')
-rw-r--r--test/ResourceSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ResourceSpec.js b/test/ResourceSpec.js
index d61282ea..adc93b92 100644
--- a/test/ResourceSpec.js
+++ b/test/ResourceSpec.js
@@ -169,7 +169,7 @@ describe("resource", function() {
});
it('should excersize full stack', function(){
- var scope = angular.compile('<div></div>');
+ var scope = angular.compile('<div></div>')().scope;
var $browser = scope.$service('$browser');
var $resource = scope.$service('$resource');
var Person = $resource('/Person/:id');
@@ -181,7 +181,7 @@ describe("resource", function() {
});
it('should return the same object when verifying the cache', function(){
- var scope = angular.compile('<div></div>');
+ var scope = angular.compile('<div></div>')().scope;
var $browser = scope.$service('$browser');
var $resource = scope.$service('$resource');
var Person = $resource('/Person/:id', null, {query: {method:'GET', isArray: true, verifyCache: true}});