free_mutant/spec/integration/mutant/isolation/fork_spec.rb
2018-09-12 13:15:43 +00:00

11 lines
269 B
Ruby

# frozen_string_literal: true
RSpec.describe Mutant::Isolation::Fork, mutant: false do
# rubocop:disable Lint/AmbiguousBlockAssociation
specify do
a = 1
expect do
Mutant::Config::DEFAULT.isolation.call { a = 2 }
end.to_not change { a }
end
end