Sha256: ae60082ffbfc62a9fd0926b21be3154df3fef6628a65795752508ff9d067011c

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

RSpec.describe Mutant::Isolation::None do
  describe '.call' do
    let(:object) { described_class.new }

    it 'return block value' do
      expect(object.call { :foo }).to be(:foo)
    end

    it 'wraps *all* exceptions' do
      expect { object.call { fail 'foo' } }.to raise_error(
        Mutant::Isolation::Error,
        'foo'
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 spec/unit/mutant/isolation/none_spec.rb
mutant-0.8.15 spec/unit/mutant/isolation/none_spec.rb
mutant-0.8.14 spec/unit/mutant/isolation/none_spec.rb
mutant-0.8.13 spec/unit/mutant/isolation/none_spec.rb
mutant-0.8.12 spec/unit/mutant/isolation/none_spec.rb
mutant-0.8.11 spec/unit/mutant/isolation/none_spec.rb