summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-09-05 17:10:30 -0700
committerMichael Kozono <mkozono@gmail.com>2017-09-06 12:07:21 -0700
commita4b564b6200582b6d3700a5e77e0c11fc5cac011 (patch)
tree0916319c37ebdaaea9b74c95c99b733bfad5336a /spec
parentf25b5b7f8db05ec441574429e024c71893fa7c11 (diff)
downloadgitlab-ce-a4b564b6200582b6d3700a5e77e0c11fc5cac011.tar.gz
Refactor based on code review
Diffstat (limited to 'spec')
-rw-r--r--spec/models/namespace_spec.rb6
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