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

12 lines
269 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-12 09:15:43 -04:00
2016-02-14 16:11:32 -05:00
RSpec.describe Mutant::Isolation::Fork, mutant: false do
2018-09-12 09:15:43 -04:00
# rubocop:disable Lint/AmbiguousBlockAssociation
2016-02-14 16:11:32 -05:00
specify do
a = 1
expect do
Mutant::Config::DEFAULT.isolation.call { a = 2 }
end.to_not change { a }
end
end