From 27398a5c6f0f6ed24214ab458ed4ef4e7860fa75 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Mon, 17 Jun 2013 13:37:20 -0400 Subject: [PATCH] Added tests for CMS.Views.ListTextbooks --- .../coffee/fixtures/no-textbooks.underscore | 1 + .../coffee/spec/views/textbook_spec.coffee | 74 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 120000 cms/static/coffee/fixtures/no-textbooks.underscore diff --git a/cms/static/coffee/fixtures/no-textbooks.underscore b/cms/static/coffee/fixtures/no-textbooks.underscore new file mode 120000 index 0000000000..d2e1c9a71a --- /dev/null +++ b/cms/static/coffee/fixtures/no-textbooks.underscore @@ -0,0 +1 @@ +../../../templates/js/no-textbooks.underscore \ No newline at end of file diff --git a/cms/static/coffee/spec/views/textbook_spec.coffee b/cms/static/coffee/spec/views/textbook_spec.coffee index 276ab05862..6b1c5835a6 100644 --- a/cms/static/coffee/spec/views/textbook_spec.coffee +++ b/cms/static/coffee/spec/views/textbook_spec.coffee @@ -112,3 +112,77 @@ describe "CMS.Views.TextbookEdit", -> expect(@collection.save).not.toHaveBeenCalled() expect(@collection.editing).toBeUndefined() + +describe "CMS.Views.ListTextbooks", -> + noTextbooksTpl = readFixtures("no-textbooks.underscore") + + beforeEach -> + setFixtures($("