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
85ae960a
authored
2013-08-04 17:35:46 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Remove adapter bypass specs from the binding spec.
1 parent
77dc1ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
spec/rivets/binding.js
spec/rivets/binding.js
View file @
85ae960
...
...
@@ -55,30 +55,6 @@ describe('Rivets.Binding', function() {
});
});
describe
(
'with the bypass option set to true'
,
function
()
{
beforeEach
(
function
()
{
binding
.
options
.
bypass
=
true
;
});
it
(
'sets the initial value from the model directly'
,
function
()
{
spyOn
(
binding
,
'set'
);
binding
.
model
.
name
=
'espresso'
;
binding
.
bind
();
expect
(
binding
.
set
).
toHaveBeenCalledWith
(
'espresso'
);
});
it
(
"calls the binder's bind method if one exists"
,
function
()
{
expect
(
function
(){
binding
.
bind
();
}).
not
.
toThrow
(
new
Error
());
binding
.
binder
.
bind
=
function
(){};
spyOn
(
binding
.
binder
,
'bind'
);
binding
.
bind
();
expect
(
binding
.
binder
.
bind
).
toHaveBeenCalled
();
});
});
describe
(
'with dependencies'
,
function
()
{
beforeEach
(
function
()
{
binding
.
options
.
dependencies
=
[
'.fname'
,
'.lname'
];
...
...
@@ -104,23 +80,6 @@ describe('Rivets.Binding', function() {
binding
.
unbind
();
expect
(
binding
.
binder
.
unbind
).
toHaveBeenCalled
();
});
describe
(
'with the bypass option set to true'
,
function
()
{
beforeEach
(
function
()
{
binding
.
options
.
bypass
=
true
;
});
it
(
"calls the binder's unbind method if one exists"
,
function
()
{
expect
(
function
(){
binding
.
unbind
();
}).
not
.
toThrow
(
new
Error
());
binding
.
binder
.
unbind
=
function
(){};
spyOn
(
binding
.
binder
,
'unbind'
);
binding
.
unbind
();
expect
(
binding
.
binder
.
unbind
).
toHaveBeenCalled
();
});
});
});
describe
(
'set()'
,
function
()
{
...
...
Please
register
or
sign in
to post a comment