specs for view.flashes.render
This commit is contained in:
parent
0c94660806
commit
a5365559d7
1 changed files with 10 additions and 0 deletions
|
|
@ -53,6 +53,16 @@ describe("View", function() {
|
|||
expect(View.flashes.animate).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
describe("render", function() {
|
||||
it("creates a new div and calls flashes.animate", function() {
|
||||
spyOn(View.flashes, "animate");
|
||||
View.flashes.render({
|
||||
success: true,
|
||||
message: "success!"
|
||||
});
|
||||
expect(View.flashes.animate).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("newRequest", function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue