Fix rspec deprecation

This commit is contained in:
Markus Schirp 2014-06-29 21:32:26 +00:00
parent 13cd04d9be
commit f36dfc442a

View file

@ -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