From 641f250f674df7d77a7b56fbcb9e21a2a333020a Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 17 Sep 2014 00:54:38 +0000 Subject: [PATCH] Add missing test case for root namespace on recursive matching expressions --- spec/unit/mutant/expression/namespace/recursive_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/unit/mutant/expression/namespace/recursive_spec.rb b/spec/unit/mutant/expression/namespace/recursive_spec.rb index fc8e1408..a975b4bd 100644 --- a/spec/unit/mutant/expression/namespace/recursive_spec.rb +++ b/spec/unit/mutant/expression/namespace/recursive_spec.rb @@ -31,6 +31,12 @@ RSpec.describe Mutant::Expression::Namespace::Recursive do it { should be(0) } 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 'on constants' do let(:other) { described_class.parse('TestApp::Literal::Deep') }