aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js
index acded34b..354ddc72 100644
--- a/test/ScopeSpec.js
+++ b/test/ScopeSpec.js
@@ -52,6 +52,11 @@ describe('scope/model', function(){
model.$eval('name="works"');
expect(model.name).toEqual('works');
});
+
+ it('should not bind regexps', function(){
+ model.exp = /abc/;
+ expect(model.$eval('exp')).toEqual(model.exp);
+ });
it('should do nothing on empty string and not update view', function(){
var onEval = jasmine.createSpy('onEval');