Add missing test case for root namespace on recursive matching expressions

This commit is contained in:
Markus Schirp 2014-09-17 00:54:38 +00:00
parent a52e2615f2
commit 641f250f67

View file

@ -31,6 +31,12 @@ RSpec.describe Mutant::Expression::Namespace::Recursive do
it { should be(0) } it { should be(0) }
end end
context 'when other expression describes root namespace' do
let(:other) { described_class.parse('TestApp::Literal') }
it { should be(16) }
end
context 'when other expression describes a longer prefix' do context 'when other expression describes a longer prefix' do
context 'on constants' do context 'on constants' do
let(:other) { described_class.parse('TestApp::Literal::Deep') } let(:other) { described_class.parse('TestApp::Literal::Deep') }