specs for view.flashes.render

This commit is contained in:
Dan Hansen 2011-01-30 16:01:28 -06:00
parent 0c94660806
commit a5365559d7

View file

@ -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() {