Skip to content
Snippets Groups Projects
Commit b423d11f authored by Rajendra Kadam's avatar Rajendra Kadam :two:
Browse files

Remove diable cop line

parent dd479169
No related branches found
No related tags found
1 merge request!101177Add `incident declare` slash command with base logic
......@@ -30,9 +30,7 @@
end
it 'returns true' do
# rubocop: disable RSpec/PredicateMatcher
expect(described_class.allowed?(project, user)).to be_truthy
# rubocop: enable RSpec/PredicateMatcher
expect(described_class).to be_allowed(project, user)
end
end
......@@ -42,11 +40,9 @@
stub_feature_flags(incident_declare_slash_command: false)
end
# rubocop: disable RSpec/PredicateMatcher
it 'returns false in allowed?' do
expect(described_class.allowed?(project, user)).to be_falsey
expect(described_class).not_to be_allowed(project, user)
end
# rubocop: enable RSpec/PredicateMatcher
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment