Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d9641ee9
authored
2012-09-22 17:48:12 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix spec to work with new event binding routine.
1 parent
86cf7283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
13 deletions
spec/rivets/binding.js
spec/rivets/binding.js
View file @
d9641ee
...
...
@@ -101,19 +101,7 @@ describe('Rivets.Binding', function() {
spyOn
(
binding
,
'routine'
);
func
=
function
()
{
return
1
+
2
;
}
binding
.
set
(
func
);
expect
(
binding
.
routine
).
toHaveBeenCalledWith
(
el
,
func
,
undefined
);
});
it
(
'passes the previously set funcation as the current listener on subsequent calls'
,
function
()
{
spyOn
(
binding
,
'routine'
);
funca
=
function
()
{
return
1
+
2
;
};
funcb
=
function
()
{
return
2
+
5
;
};
binding
.
set
(
funca
);
expect
(
binding
.
routine
).
toHaveBeenCalledWith
(
el
,
funca
,
undefined
);
binding
.
set
(
funcb
);
expect
(
binding
.
routine
).
toHaveBeenCalledWith
(
el
,
funcb
,
funca
);
expect
(
binding
.
routine
).
toHaveBeenCalledWith
(
el
,
binding
.
model
,
func
,
undefined
);
});
});
...
...
Please
register
or
sign in
to post a comment