Update routine specs to access the binder's routine property where needed.
Showing
1 changed file
with
7 additions
and
7 deletions
... | @@ -46,17 +46,17 @@ describe('Routines', function() { | ... | @@ -46,17 +46,17 @@ describe('Routines', function() { |
46 | 46 | ||
47 | describe('value', function() { | 47 | describe('value', function() { |
48 | it("sets the element's value", function() { | 48 | it("sets the element's value", function() { |
49 | rivets.routines.value(input, 'pitchfork'); | 49 | rivets.routines.value.routine(input, 'pitchfork'); |
50 | expect(input.value).toBe('pitchfork'); | 50 | expect(input.value).toBe('pitchfork'); |
51 | }); | 51 | }); |
52 | 52 | ||
53 | it("applies a default value to the element when the model doesn't contain it", function() { | 53 | it("applies a default value to the element when the model doesn't contain it", function() { |
54 | rivets.routines.value(input, undefined); | 54 | rivets.routines.value.routine(input, undefined); |
55 | expect(input.value).toBe(''); | 55 | expect(input.value).toBe(''); |
56 | }); | 56 | }); |
57 | 57 | ||
58 | it("sets the element's value to zero when a zero value is passed", function() { | 58 | it("sets the element's value to zero when a zero value is passed", function() { |
59 | rivets.routines.value(input, 0); | 59 | rivets.routines.value.routine(input, 0); |
60 | expect(input.value).toBe('0'); | 60 | expect(input.value).toBe('0'); |
61 | }); | 61 | }); |
62 | }); | 62 | }); |
... | @@ -128,14 +128,14 @@ describe('Routines', function() { | ... | @@ -128,14 +128,14 @@ describe('Routines', function() { |
128 | describe('checked', function() { | 128 | describe('checked', function() { |
129 | describe('with a truthy value', function() { | 129 | describe('with a truthy value', function() { |
130 | it('checks the element', function() { | 130 | it('checks the element', function() { |
131 | rivets.routines.checked(el, true); | 131 | rivets.routines.checked.routine(el, true); |
132 | expect(el.checked).toBe(true); | 132 | expect(el.checked).toBe(true); |
133 | }); | 133 | }); |
134 | }); | 134 | }); |
135 | 135 | ||
136 | describe('with a falsey value', function() { | 136 | describe('with a falsey value', function() { |
137 | it('unchecks the element', function() { | 137 | it('unchecks the element', function() { |
138 | rivets.routines.checked(el, false); | 138 | rivets.routines.checked.routine(el, false); |
139 | expect(el.checked).toBe(false); | 139 | expect(el.checked).toBe(false); |
140 | }); | 140 | }); |
141 | }); | 141 | }); |
... | @@ -144,14 +144,14 @@ describe('Routines', function() { | ... | @@ -144,14 +144,14 @@ describe('Routines', function() { |
144 | describe('unchecked', function() { | 144 | describe('unchecked', function() { |
145 | describe('with a truthy value', function() { | 145 | describe('with a truthy value', function() { |
146 | it('unchecks the element', function() { | 146 | it('unchecks the element', function() { |
147 | rivets.routines.unchecked(el, true); | 147 | rivets.routines.unchecked.routine(el, true); |
148 | expect(el.checked).toBe(false); | 148 | expect(el.checked).toBe(false); |
149 | }); | 149 | }); |
150 | }); | 150 | }); |
151 | 151 | ||
152 | describe('with a falsey value', function() { | 152 | describe('with a falsey value', function() { |
153 | it('checks the element', function() { | 153 | it('checks the element', function() { |
154 | rivets.routines.unchecked(el, false); | 154 | rivets.routines.unchecked.routine(el, false); |
155 | expect(el.checked).toBe(true); | 155 | expect(el.checked).toBe(true); |
156 | }); | 156 | }); |
157 | }); | 157 | }); | ... | ... |
-
Please register or sign in to post a comment