free_mutant/spec/unit/mutant_spec.rb

18 lines
321 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-12 09:15:43 -04:00
RSpec.describe Mutant do
2014-07-05 22:23:11 -04:00
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