123456789101112131415161718192021222324252627282930313233 |
- import Ember from 'ember';
- import { module, test } from 'qunit';
- import startApp from '../helpers/start-app';
- var application;
- module('Acceptance: Index', {
- beforeEach: function() {
- application = startApp();
- },
- afterEach: function() {
- Ember.run(application, 'destroy');
- }
- });
- test('visiting /', function(assert) {
- visit('/');
- andThen(function() {
- assert.equal(currentPath(), 'index');
- });
- });
- test('visiting / with custom title', function(assert) {
- var newTitle = "Misago Support Forums";
- window.MisagoData.misagoSettings['forum_index_title'] = newTitle;
- visit('/');
- andThen(function() {
- assert.equal(currentPath(), 'index');
- assert.equal(document.title, newTitle);
- });
- });
|