diff --git a/meta/block.rb b/meta/block.rb index d06e2ab7b..ed67d067c 100644 --- a/meta/block.rb +++ b/meta/block.rb @@ -79,16 +79,6 @@ mutation 'foo' end -Mutant::Meta::Example.add :block do - source 'foo { |a| }' - - singleton_mutations - mutation 'foo { || }' - mutation 'foo { |a| raise }' - mutation 'foo { |_a| }' - mutation 'foo' -end - Mutant::Meta::Example.add :block do source 'foo { bar(nil) }' diff --git a/meta/send.rb b/meta/send.rb index 74402122b..d384dae51 100644 --- a/meta/send.rb +++ b/meta/send.rb @@ -219,21 +219,6 @@ mutation 'true' end -Mutant::Meta::Example.add :send do - source 'foo.is_a?(bar)' - - singleton_mutations - mutation 'foo' - mutation 'bar' - mutation 'foo.is_a?' - mutation 'foo.is_a?(nil)' - mutation 'foo.is_a?(self)' - mutation 'self.is_a?(bar)' - mutation 'foo.instance_of?(bar)' - mutation 'false' - mutation 'true' -end - Mutant::Meta::Example.add :send do source 'foo.kind_of?(bar)' diff --git a/spec/unit/mutant/meta/example_spec.rb b/spec/unit/mutant/meta/example_spec.rb index da187495e..9b4c933ef 100644 --- a/spec/unit/mutant/meta/example_spec.rb +++ b/spec/unit/mutant/meta/example_spec.rb @@ -30,6 +30,14 @@ end end + it 'does not define any repeated examples' do + source_counts = described_class::ALL.each_with_object(Hash.new(0)) do |example, counts| + counts["#{example.location.path}:#{example.original_source}"] += 1 + end + + expect(source_counts.select { |_source, count| count > 1 }.keys).to eql([]) + end + describe '#original_source_generated' do subject { object.original_source_generated }