diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/group_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 15ec672f165..7f0b1185ba4 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -633,7 +633,11 @@ describe Group do group.update!(require_two_factor_authentication: true, two_factor_grace_period: 23) - expect(calls).to eq 2 + if Group.supports_nested_objects? + expect(calls).to eq 2 + else + expect(calls).to eq 1 + end end it 'calls #update_two_factor_requirement on each group member' do |