Do not use an evil example for an isolated global side effect
This commit is contained in:
parent
8fd9743742
commit
a9ed9cc8f4
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ describe Mutant::Isolation do
|
|||
let(:object) { described_class }
|
||||
|
||||
it 'isolates global effects from process' do
|
||||
expect { object.call { $global = 1 } }.not_to change { defined?($global) }.from(nil)
|
||||
expect { object.call { ::Foo = 1 } }.not_to change { defined?(Foo) }.from(nil)
|
||||
end
|
||||
|
||||
it 'return block value' do
|
||||
|
|
Loading…
Add table
Reference in a new issue