From 06c7708ea3e12f661ef88ab7119248bd8b724bed Mon Sep 17 00:00:00 2001 From: kagemusha Date: Sat, 22 Aug 2015 11:37:05 -0400 Subject: [PATCH] set first column active on load --- app/gist/controller.js | 1 + tests/acceptance/columns-test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/app/gist/controller.js b/app/gist/controller.js index 1f66ae0f..c4d68271 100644 --- a/app/gist/controller.js +++ b/app/gist/controller.js @@ -24,6 +24,7 @@ export default Ember.Controller.extend({ this._super(...arguments); this.createColumns(); this.setupWindowUpdate(); + this.set('activeEditorCol', '1'); }, /** diff --git a/tests/acceptance/columns-test.js b/tests/acceptance/columns-test.js index d5532e55..65892ae2 100644 --- a/tests/acceptance/columns-test.js +++ b/tests/acceptance/columns-test.js @@ -26,6 +26,7 @@ test('you can add and remove columns', function(assert) { andThen(function() { assert.equal(currentURL(), '/', 'We are on the correct initial route'); assert.equal(find(columns).length, 2, 'There are two columns to start'); + assert.ok(find(firstColumn).hasClass('active'), 'The first column starts out active'); find(plusGlyph).click(); });