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
@@ -1,3 +1,4 @@
import { blank } from 'helpers/qunit-helpers';
import { currentUser } from 'helpers/qunit-helpers';
module("model:composer");
+1 -6
View File
@@ -1,11 +1,6 @@
import Presence from 'discourse/mixins/presence';
import Model from 'discourse/models/model';
module("Discourse.Model");
test("mixes in Presence", function() {
ok(Presence.detect(Model.create()));
});
module("model:discourse");
test("extractByKey: converts a list of hashes into a hash of instances of specified class, indexed by their ids", function() {
var firstObject = {id: "id_1", foo: "foo_1"};
@@ -1,3 +1,4 @@
import { blank, present } from 'helpers/qunit-helpers';
module("model:post-stream");
import createStore from 'helpers/create-store';
+2
View File
@@ -1,3 +1,5 @@
import { present, blank } from 'helpers/qunit-helpers';
module("Discourse.Post");
var buildPost = function(args) {
@@ -1,3 +1,5 @@
import { blank } from 'helpers/qunit-helpers';
module("Discourse.Report");
function reportWithData(data) {
+2
View File
@@ -1,3 +1,5 @@
import { blank, present } from 'helpers/qunit-helpers';
module("Discourse.Site");
test('create', function() {
@@ -1,3 +1,4 @@
import { present } from 'helpers/qunit-helpers';
module("model:topic-details");
import Topic from 'discourse/models/topic';
@@ -1,3 +1,4 @@
import { blank, present } from 'helpers/qunit-helpers';
module("model:topic");
import Topic from 'discourse/models/topic';
@@ -1,4 +1,6 @@
module("Discourse.User");
import { blank, present } from 'helpers/qunit-helpers';
module("Discourse.UserStream");
test('basics', function(){
var user = Discourse.User.create({id: 1, username: 'eviltrout'});