Sha256: c79fcd0ba365fbdadb8fcd0a15cd90ed5a898d0978e1d10fdeea7beec50b3863

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

RSpec.describe Mutant do
  let(:object) { described_class }

  describe '.ci?' do
    subject { object.ci? }

    let(:value) { instance_double(Object, 'value') }

    before do
      expect(ENV).to receive(:key?).with('CI').and_return(value)
    end

    it { should be(value) }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.16 spec/unit/mutant_spec.rb
mutant-0.8.15 spec/unit/mutant_spec.rb
mutant-0.8.14 spec/unit/mutant_spec.rb
mutant-0.8.13 spec/unit/mutant_spec.rb
mutant-0.8.12 spec/unit/mutant_spec.rb
mutant-0.8.11 spec/unit/mutant_spec.rb
mutant-0.8.10 spec/unit/mutant_spec.rb
mutant-0.8.9 spec/unit/mutant_spec.rb