RSpec.describe Mutest::Expression::Namespace::Exact do let(:object) { parse_expression(input) } let(:input) { 'TestApp::Literal' } describe '#matcher' do subject { object.matcher } it { is_expected.to eql(Mutest::Matcher::Scope.new(TestApp::Literal)) } end describe '#match_length' do subject { object.match_length(other) } context 'when other is an equivalent expression' do let(:other) { parse_expression(object.syntax) } it { is_expected.to be(object.syntax.length) } end context 'when other is an unequivalent expression' do let(:other) { parse_expression('Foo*') } it { is_expected.to be(0) } end end end