diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-05 17:10:30 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-09-06 12:07:21 -0700 |
commit | a4b564b6200582b6d3700a5e77e0c11fc5cac011 (patch) | |
tree | 0916319c37ebdaaea9b74c95c99b733bfad5336a /spec | |
parent | f25b5b7f8db05ec441574429e024c71893fa7c11 (diff) | |
download | gitlab-ce-a4b564b6200582b6d3700a5e77e0c11fc5cac011.tar.gz |
Refactor based on code review
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/namespace_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index 3f38316ceae..6e583dc3e93 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -433,7 +433,7 @@ describe Namespace do let!(:subgroup) { create(:group, parent: root_group )} it 'the subgroup share lock becomes enabled' do - root_group.update(share_with_group_lock: true) + root_group.update!(share_with_group_lock: true) expect(subgroup.reload.share_with_group_lock).to be_truthy end @@ -446,7 +446,7 @@ describe Namespace do let(:subgroup) { create(:group, parent: root_group, share_with_group_lock: true )} it 'the subgroup share lock does not change' do - root_group.update(share_with_group_lock: false) + root_group.update!(share_with_group_lock: false) expect(subgroup.reload.share_with_group_lock).to be_truthy end @@ -456,7 +456,7 @@ describe Namespace do let(:subgroup) { create(:group, parent: root_group )} it 'the subgroup share lock does not change' do - root_group.update(share_with_group_lock: false) + root_group.update!(share_with_group_lock: false) expect(subgroup.reload.share_with_group_lock?).to be_falsey end |