Sha256: 093dff48821b3321ebef2a7648afa1938d037ff66c2132364876ed6470c5d61e

Contents?: true

Size: 277 Bytes

Versions: 9

Compression:

Stored size: 277 Bytes

Contents

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

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

    let(:result) { double('Result') }

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

    it { should be(result) }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mutant-0.8.8 spec/unit/mutant_spec.rb
mutant-0.8.7 spec/unit/mutant_spec.rb
mutant-0.8.6 spec/unit/mutant_spec.rb
mutant-0.8.5 spec/unit/mutant_spec.rb
mutant-0.8.4 spec/unit/mutant_spec.rb
mutant-0.8.3 spec/unit/mutant_spec.rb
mutant-0.8.2 spec/unit/mutant_spec.rb
mutant-0.8.1 spec/unit/mutant_spec.rb
mutant-0.8.0 spec/unit/mutant_spec.rb