Commit 8f7c5746 authored by Ohad Dahan's avatar Ohad Dahan

Added test "not query the db when there is no parent group"

parent db3a01e4
......@@ -923,6 +923,12 @@ describe Namespace do
expect(group.emails_disabled?).to be_truthy
end
it 'not query the db when there is no parent group' do
group = create(:group, emails_disabled: true)
expect { group.emails_disabled? }.not_to exceed_query_limit(0)
end
end
context 'when a subgroup' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment