define ["js/models/textbook", "js/models/chapter", "js/collections/chapter", "js/models/course", "js/collections/textbook", "js/views/show_textbook", "js/views/edit_textbook", "js/views/list_textbooks", "js/views/edit_chapter", "js/views/feedback_prompt", "js/views/feedback_notification", "js/views/utils/view_utils", "common/js/spec_helpers/ajax_helpers", "js/spec_helpers/modal_helpers", "jasmine-stealth"], (Textbook, Chapter, ChapterSet, Course, TextbookSet, ShowTextbook, EditTextbook, ListTextbooks, EditChapter, Prompt, Notification, ViewUtils, AjaxHelpers, modal_helpers) -> feedbackTpl = readFixtures('system-feedback.underscore') beforeEach -> # remove this when we upgrade jasmine-jquery @addMatchers toContainText: (text) -> trimmedText = $.trim(@actual.text()) if text and $.isFunction(text.test) return text.test(trimmedText) else return trimmedText.indexOf(text) != -1; describe "ShowTextbook", -> tpl = readFixtures('show-textbook.underscore') beforeEach -> setFixtures($("