spec/unit/mutant/expression/methods_spec.rb in mutant-0.6.3 vs spec/unit/mutant/expression/methods_spec.rb in mutant-0.6.4

- old
+ new

@@ -14,10 +14,16 @@ let(:other) { described_class.parse(object.syntax) } it { should be(object.syntax.length) } end - context 'when other is an unequivalent expression' do + context 'when other is matched' do + let(:other) { described_class.parse('TestApp::Literal#foo') } + + it { should be(object.syntax.length) } + end + + context 'when other is an not matched expression' do let(:other) { described_class.parse('Foo*') } it { should be(0) } end end