free_mutant/spec/integration/mutant/isolation/fork_spec.rb

9 lines
187 B
Ruby
Raw Normal View History

2016-02-14 16:11:32 -05:00
RSpec.describe Mutant::Isolation::Fork, mutant: false do
specify do
a = 1
expect do
Mutant::Config::DEFAULT.isolation.call { a = 2 }
end.to_not change { a }
end
end