Sha256: a2d9e1138e9a97f182d49210ae09581caec97c9b6563236532d1ab7839c0c5c6

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

RSpec.describe Mutant::Mutator do
  describe '.handle' do
    subject do
      Class.new(described_class) do
        const_set(:REGISTRY, Mutant::Registry.new)

        handle :send

        def dispatch
          emit(parent)
        end
      end
    end

    it 'should register mutator' do
      expect(subject.mutate(s(:send), s(:parent))).to eql([s(:parent)].to_set)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.8.16 spec/unit/mutant/mutator_spec.rb
mutant-0.8.15 spec/unit/mutant/mutator_spec.rb
mutant-0.8.14 spec/unit/mutant/mutator_spec.rb
mutant-0.8.13 spec/unit/mutant/mutator_spec.rb
mutant-0.8.12 spec/unit/mutant/mutator_spec.rb