free_mutant/spec/unit/mutant_spec.rb
Markus Schirp f9d3a275ac Remove Mutant.singleton_subclass_instance
* Only one call side, implementation was inlined
2015-06-13 13:37:25 +00:00

15 lines
277 B
Ruby

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