spec/lib/release_tools/promotion/checks/active_gprd_deployments_spec.rb [6:27]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  subject(:check) { described_class.new }

  before do
    allow(ReleaseTools::Chef::Client)
      .to receive(:new)
      .and_return(chef_client)
  end

  context 'when the environment is disabled' do
    let(:chef_client) do
      instance_double(
        ReleaseTools::Chef::Client,
        pipeline_url: 'https://example.com/some/pipeline/url',
        environment_enabled?: false
      )
    end

    describe '#to_slack_blocks' do
      it 'shows check blocks' do
        slack_blocks = check.to_slack_blocks
        expect(slack_blocks.length).to eq(1)
        expect(slack_blocks.first.dig(:text, :text)).to eq(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/lib/release_tools/promotion/checks/active_gstg_deployments_spec.rb [6:27]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  subject(:check) { described_class.new }

  before do
    allow(ReleaseTools::Chef::Client)
      .to receive(:new)
      .and_return(chef_client)
  end

  context 'when the environment is disabled' do
    let(:chef_client) do
      instance_double(
        ReleaseTools::Chef::Client,
        pipeline_url: 'https://example.com/some/pipeline/url',
        environment_enabled?: false
      )
    end

    describe '#to_slack_blocks' do
      it 'shows check blocks' do
        slack_blocks = check.to_slack_blocks
        expect(slack_blocks.length).to eq(1)
        expect(slack_blocks.first.dig(:text, :text)).to eq(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



