Skip to content

Commit f9d4d22

Browse files
committed
Refactor Mutant::Env specs to be canonical
1 parent d0e3f0d commit f9d4d22

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec/unit/mutant/env_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
RSpec.describe Mutant::Env do
4-
let(:object) do
4+
subject do
55
described_class.new(
66
config: config,
77
integration: integration,
@@ -55,7 +55,7 @@
5555

5656
describe '#kill' do
5757
def apply
58-
object.kill(mutation)
58+
subject.kill(mutation)
5959
end
6060

6161
before do
@@ -120,10 +120,12 @@ def apply
120120
end
121121

122122
describe '#selections' do
123-
subject { object.selections }
123+
def apply
124+
subject.selections
125+
end
124126

125127
it 'returns expected selections' do
126-
expect(subject).to eql(mutation_subject => tests)
128+
expect(apply).to eql(mutation_subject => tests)
127129
end
128130
end
129131
end

0 commit comments

Comments
 (0)