Don't overwrite the default adapter in the binding spec.
Showing
1 changed file
with
1 additions
and
8 deletions
... | @@ -2,14 +2,7 @@ describe('Rivets.Binding', function() { | ... | @@ -2,14 +2,7 @@ describe('Rivets.Binding', function() { |
2 | var model, el, view, binding, opts; | 2 | var model, el, view, binding, opts; |
3 | 3 | ||
4 | beforeEach(function() { | 4 | beforeEach(function() { |
5 | adapter = { | 5 | adapter = rivets.adapters['.'] |
6 | subscribe: function() {}, | ||
7 | unsubscribe: function() {}, | ||
8 | read: function() { return {} }, | ||
9 | publish: function() {} | ||
10 | }; | ||
11 | |||
12 | rivets.adapters['.'] = adapter; | ||
13 | 6 | ||
14 | el = document.createElement('div'); | 7 | el = document.createElement('div'); |
15 | el.setAttribute('data-text', 'obj.name'); | 8 | el.setAttribute('data-text', 'obj.name'); | ... | ... |
-
Please register or sign in to post a comment