Sha256: e92b0070bf660a0a3d32e887d2e069a6fdfdd995e349107d5e245bbbad94c4fe
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
require 'spec_helper' describe Mutant::Isolation do describe '.run' do let(:object) { described_class } it 'isolates global effects from process' do expect { object.call { ::Foo = 1 } }.not_to change { defined?(Foo) }.from(nil) end it 'return block value' do expect(object.call { :foo }).to be(:foo) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.5.23 | spec/unit/mutant/isolation_spec.rb |