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

@ -1,5 +1,3 @@
import Presence from 'discourse/mixins/presence';
var SomeViewClass = Ember.View.extend();
function containerHasOnlyOneChild(containerView, klass) {
@ -19,11 +17,6 @@ function childHasProperty(containerView, name) {
moduleFor("view:container");
test("mixes in Presence", function() {
var containerView = this.subject();
ok(Presence.detect(containerView));
});
test("attachViewWithArgs: creates a view of a given class with given properties and appends it to the container", function() {
var containerView = this.subject();
containerView.attachViewWithArgs({foo: "foo"}, SomeViewClass);