Skip to content

Commit

Permalink
Remove redundant skipped candidate specs
Browse files Browse the repository at this point in the history
- An identical expectation is included via the `skipped candidate` shared example in `spec/shared/method_matcher_behavior.rb`.
  • Loading branch information
dgollahon committed May 14, 2023
1 parent c1f18b7 commit e304940
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions spec/unit/mutant/matcher/method/instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def arguments
end

include_examples 'skipped candidate'

it 'returns expected subjects' do
expect(subject).to eql([])
end
end

context 'when method is defined inside eval' do
Expand All @@ -73,10 +69,6 @@ def arguments
end

include_examples 'skipped candidate'

it 'returns expected subjects' do
expect(subject).to eql([])
end
end

context 'when method is defined without source location' do
Expand All @@ -90,10 +82,6 @@ def arguments
end

include_examples 'skipped candidate'

it 'returns expected subjects' do
expect(subject).to eql([])
end
end

context 'in module eval' do
Expand All @@ -106,10 +94,6 @@ def arguments
end

include_examples 'skipped candidate'

it 'returns expected subjects' do
expect(subject).to eql([])
end
end

context 'in class eval' do
Expand All @@ -122,10 +106,6 @@ def arguments
end

include_examples 'skipped candidate'

it 'returns expected subjects' do
expect(subject).to eql([])
end
end

context 'when method is defined once' do
Expand Down

0 comments on commit e304940

Please sign in to comment.