mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Remove ObjectController, Discouse Controllers + Presence
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user