correct some tests

This commit is contained in:
Sam Saffron 2017-07-04 10:01:36 -04:00
parent 43ecfb016a
commit b8b4970481
1 changed files with 4 additions and 4 deletions

View File

@ -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");