Skip to content

Commit

Permalink
Merge pull request #941 from mbj/fix/method-expression-coverage
Browse files Browse the repository at this point in the history
Fix coverage of Mutant::Expression::Method#syntax
  • Loading branch information
mbj committed Mar 10, 2019
2 parents 3692a1d + 8450957 commit 792c98d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/unit/mutant/expression/method_spec.rb
Expand Up @@ -43,4 +43,20 @@
end
end
end

describe '#syntax' do
subject { object.syntax }

context 'on instance method' do
let(:input) { instance_method }

it { should eql(instance_method) }
end

context 'on singleton method' do
let(:input) { singleton_method }

it { should eql(singleton_method) }
end
end
end

0 comments on commit 792c98d

Please sign in to comment.