2018-09-12 10:21:24 -04:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 09:15:43 -04:00
|
|
|
|
2014-08-10 17:04:05 -04:00
|
|
|
RSpec.describe Mutant do
|
2014-07-05 22:23:11 -04:00
|
|
|
let(:object) { described_class }
|
|
|
|
|
2014-08-11 13:52:51 -04:00
|
|
|
describe '.ci?' do
|
|
|
|
subject { object.ci? }
|
|
|
|
|
2015-11-15 15:16:42 -05:00
|
|
|
let(:value) { instance_double(Object, 'value') }
|
2014-08-11 13:52:51 -04:00
|
|
|
|
|
|
|
before do
|
2015-11-15 15:16:42 -05:00
|
|
|
expect(ENV).to receive(:key?).with('CI').and_return(value)
|
2014-08-11 13:52:51 -04:00
|
|
|
end
|
|
|
|
|
2015-11-15 15:16:42 -05:00
|
|
|
it { should be(value) }
|
2014-08-11 13:52:51 -04:00
|
|
|
end
|
2013-12-29 17:29:58 -05:00
|
|
|
end
|