diff options
Diffstat (limited to 'spec/lib/gitlab/monitor')
-rw-r--r-- | spec/lib/gitlab/monitor/demo_projects_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/gitlab/monitor/demo_projects_spec.rb b/spec/lib/gitlab/monitor/demo_projects_spec.rb index 262c78eb62e..6b0f855e38d 100644 --- a/spec/lib/gitlab/monitor/demo_projects_spec.rb +++ b/spec/lib/gitlab/monitor/demo_projects_spec.rb @@ -6,15 +6,13 @@ RSpec.describe Gitlab::Monitor::DemoProjects do describe '#primary_keys' do subject { described_class.primary_keys } - it 'fetches primary_keys when on gitlab.com' do - allow(Gitlab).to receive(:com?).and_return(true) + it 'fetches primary_keys when on SaaS', :saas do allow(Gitlab).to receive(:staging?).and_return(false) expect(subject).to eq(Gitlab::Monitor::DemoProjects::DOT_COM_IDS) end - it 'fetches primary_keys when on staging' do - allow(Gitlab).to receive(:com?).and_return(true) + it 'fetches primary_keys when on staging', :saas do allow(Gitlab).to receive(:staging?).and_return(true) expect(subject).to eq(Gitlab::Monitor::DemoProjects::STAGING_IDS) |