Sha256: e54785c426755fa6f460c76534a87fbb7d8c774a854054e7ac64103c130ee416
Contents?: true
Size: 687 Bytes
Versions: 9
Compression:
Stored size: 687 Bytes
Contents
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
Version data entries
9 entries across 9 versions & 1 rubygems