From 207b351049a441e936e59731a0a1aa18b8a3b2f0 Mon Sep 17 00:00:00 2001 From: Faldrian Date: Sat, 2 Aug 2014 10:30:17 +0200 Subject: [PATCH] added test for help section keyboard shortcuts --- spec/javascripts/app/views/help_view_spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/javascripts/app/views/help_view_spec.js b/spec/javascripts/app/views/help_view_spec.js index 7ca14a2ad..6919db2d8 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();