aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js
index 013b1bfc..6f5485e7 100644
--- a/test/ScopeSpec.js
+++ b/test/ScopeSpec.js
@@ -21,11 +21,11 @@ describe('scope/model', function(){
});
describe('$eval', function(){
- it('should eval function with correct this and pass arguments', function(){
+ it('should eval function with correct this', function(){
var model = createScope();
- model.$eval(function(name){
- this.name = name;
- }, 'works');
+ model.$eval(function(){
+ this.name = 'works';
+ });
expect(model.name).toEqual('works');
});