diff --git a/test/javascripts/controllers/admin-group-test.js.es6 b/test/javascripts/controllers/admin-group-test.js.es6 index c8b747fc5f9..b03ddf7422b 100644 --- a/test/javascripts/controllers/admin-group-test.js.es6 +++ b/test/javascripts/controllers/admin-group-test.js.es6 @@ -4,12 +4,12 @@ moduleFor("controller:admin-group", { QUnit.test("disablePublicSetting", function(assert) { this.subject().setProperties({ - model: { visible: false, allow_membership_requests: false } + model: { visibility_level: 1, allow_membership_requests: false } }); assert.equal(this.subject().get("disablePublicSetting"), true, "it should disable setting"); - this.subject().set("model.visible", true); + this.subject().set("model.visibility_level", 0); assert.equal(this.subject().get("disablePublicSetting"), false, "it should enable setting"); @@ -20,12 +20,12 @@ QUnit.test("disablePublicSetting", function(assert) { QUnit.test("disableMembershipRequestSetting", function(assert) { this.subject().setProperties({ - model: { visible: false, public: false, canEveryoneMention: true } + model: { visibility_level: 1, public: false, canEveryoneMention: true } }); assert.equal(this.subject().get("disableMembershipRequestSetting"), true, "it should disable setting"); - this.subject().set("model.visible", true); + this.subject().set("model.visibility_level", 0); assert.equal(this.subject().get("disableMembershipRequestSetting"), false, "it should enable setting");