Remove ObjectController, Discouse Controllers + Presence

This commit is contained in:
Robin Ward
2015-08-11 12:27:07 -04:00
parent e2e3e7c0e0
commit 02a968bd27
130 changed files with 187 additions and 349 deletions

View File

@@ -8,14 +8,6 @@ function count(selector) {
return find(selector).length;
}
function present(obj, text) {
ok(!Ember.isEmpty(obj), text);
}
function blank(obj, text) {
ok(Ember.isEmpty(obj), text);
}
function containsInstance(collection, klass, text) {
ok(klass.detectInstance(_.first(collection)), text);
}

View File

@@ -1,3 +1,4 @@
import { blank } from 'helpers/qunit-helpers';
module("helper:custom-html");
import { getCustomHTML, setCustomHTML } from 'discourse/helpers/custom-html';

View File

@@ -1,4 +1,4 @@
/* global asyncTest */
/* global asyncTest, fixtures */
import sessionFixtures from 'fixtures/session-fixtures';
import siteFixtures from 'fixtures/site_fixtures';
@@ -101,4 +101,19 @@ function fixture(selector) {
return $("#qunit-fixture");
}
export { acceptance, controllerFor, asyncTestDiscourse, fixture, logIn, currentUser };
function present(obj, text) {
ok(!Ember.isEmpty(obj), text);
}
function blank(obj, text) {
ok(Ember.isEmpty(obj), text);
}
export { acceptance,
controllerFor,
asyncTestDiscourse,
fixture,
logIn,
currentUser,
blank,
present };