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($("