diff --git a/spec/javascripts/app/views/help_view_spec.js b/spec/javascripts/app/views/help_view_spec.js index 7ca14a2adabd23eba8ac2526898d0b6f176122c0..6919db2d860b00f53377a4c70dfe22d98595ddd1 100644 --- a/spec/javascripts/app/views/help_view_spec.js +++ b/spec/javascripts/app/views/help_view_spec.js @@ -77,6 +77,11 @@ describe("app.views.Help", function(){ expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_tags')).toBeTruthy(); }); + it('should show keyboard shortcuts section', function(){ + this.view.$el.find('a[data-section=keyboard_shortcuts]').trigger('click'); + expect(this.view.$el.find('#faq').children().first().data('template') == 'faq_keyboard_shortcuts').toBeTruthy(); + }); + it('should show miscellaneous section', function(){ this.view.$el.find('a[data-section=miscellaneous]').trigger('click'); expect(this.view.$el.find('#faq').children().first().hasClass('faq_question_miscellaneous')).toBeTruthy();