Fix rspec deprecation
This commit is contained in:
parent
13cd04d9be
commit
f36dfc442a
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ describe Mutant::Isolation do
|
|||
let(:object) { described_class }
|
||||
|
||||
it 'isolates global effects from process' do
|
||||
expect { object.call { ::Foo = 1 } }.not_to change { defined?(Foo) }.from(nil)
|
||||
expect(defined?(::TestConstant)).to be(nil)
|
||||
object.call { ::TestConstant = 1 }
|
||||
expect(defined?(::TestConstant)).to be(nil)
|
||||
end
|
||||
|
||||
it 'return block value' do
|
||||
|
|
Loading…
Add table
Reference in a new issue