85ae960a by Michael Richards

Remove adapter bypass specs from the binding spec.

1 parent 77dc1ba4
...@@ -55,30 +55,6 @@ describe('Rivets.Binding', function() { ...@@ -55,30 +55,6 @@ describe('Rivets.Binding', function() {
55 }); 55 });
56 }); 56 });
57 57
58 describe('with the bypass option set to true', function() {
59 beforeEach(function() {
60 binding.options.bypass = true;
61 });
62
63 it('sets the initial value from the model directly', function() {
64 spyOn(binding, 'set');
65 binding.model.name = 'espresso';
66 binding.bind();
67 expect(binding.set).toHaveBeenCalledWith('espresso');
68 });
69
70 it("calls the binder's bind method if one exists", function() {
71 expect(function(){
72 binding.bind();
73 }).not.toThrow(new Error());
74
75 binding.binder.bind = function(){};
76 spyOn(binding.binder, 'bind');
77 binding.bind();
78 expect(binding.binder.bind).toHaveBeenCalled();
79 });
80 });
81
82 describe('with dependencies', function() { 58 describe('with dependencies', function() {
83 beforeEach(function() { 59 beforeEach(function() {
84 binding.options.dependencies = ['.fname', '.lname']; 60 binding.options.dependencies = ['.fname', '.lname'];
...@@ -104,23 +80,6 @@ describe('Rivets.Binding', function() { ...@@ -104,23 +80,6 @@ describe('Rivets.Binding', function() {
104 binding.unbind(); 80 binding.unbind();
105 expect(binding.binder.unbind).toHaveBeenCalled(); 81 expect(binding.binder.unbind).toHaveBeenCalled();
106 }); 82 });
107
108 describe('with the bypass option set to true', function() {
109 beforeEach(function() {
110 binding.options.bypass = true;
111 });
112
113 it("calls the binder's unbind method if one exists", function() {
114 expect(function(){
115 binding.unbind();
116 }).not.toThrow(new Error());
117
118 binding.binder.unbind = function(){};
119 spyOn(binding.binder, 'unbind');
120 binding.unbind();
121 expect(binding.binder.unbind).toHaveBeenCalled();
122 });
123 });
124 }); 83 });
125 84
126 describe('set()', function() { 85 describe('set()', function() {
......