Sha256: be6a0ae65debc4a0d74156677a2ba431d8e819313d577a8eae1c12b9453fe0c6
Contents?: true
Size: 807 Bytes
Versions: 4
Compression:
Stored size: 807 Bytes
Contents
require 'spec_helper' describe Mutant::Expression::Namespace::Exact do let(:object) { described_class.parse(input) } let(:cache) { Mutant::Cache.new } let(:input) { 'TestApp::Literal' } describe '#matcher' do subject { object.matcher(cache) } it { should eql(Mutant::Matcher::Namespace::Scope.new(cache, TestApp::Literal)) } end describe '#match_length' do subject { object.match_length(other) } context 'when other is an equivalent expression' do let(:other) { described_class.parse(object.syntax) } it { should be(object.syntax.length) } end context 'when other is an unequivalent expression' do let(:other) { described_class.parse('Foo*') } it { should be(0) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems