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

10 lines
217 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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