spec/lib/gdk/diagnostic/praefect_spec.rb [7:28]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    context 'focusing on checking DB migrations' do
      before do
        allow(subject).to receive(:dir_length_ok?).and_return(true)
      end

      context 'when there are DB migrations that need attention' do
        it 'returns false' do
          stub_unmigrated_migration

          expect(subject.success?).to be_falsey
        end
      end

      context 'when there are no DB migrations that need attention' do
        it 'returns true' do
          stub_migrated_migration

          expect(subject.success?).to be_truthy
        end
      end
    end
  end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/lib/gdk/diagnostic/registry_spec.rb [26:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      context 'focusing on checking DB migrations' do
        before do
          allow(subject).to receive(:dir_length_ok?).and_return(true)
        end

        context 'when there are DB migrations that need attention' do
          it 'returns false' do
            stub_unmigrated_migration

            expect(subject.success?).to be_falsey
          end
        end

        context 'when there are no DB migrations that need attention' do
          it 'returns true' do
            stub_migrated_migration

            expect(subject.success?).to be_truthy
          end
        end
      end
    end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



