Sha256: dcb86877ebe911a1127182da5cf004f9c687a56564d64cf9e251a21f54eec752
Contents?: true
Size: 545 Bytes
Versions: 8
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true RSpec.describe Mutant::AST::Regexp::Transformer::LookupTable::Table do subject { table.lookup(:regexp_fake_thing) } let(:expression_class) { class_double(Regexp::Expression) } let(:table) do described_class.create( [:regexp_fake_thing, %i[thing fake], expression_class] ) end its(:token) { should eql(Regexp::Token.new(:thing, :fake)) } its(:regexp_class) { should be(expression_class) } it 'exposes list of types' do expect(table.types).to eql([:regexp_fake_thing]) end end
Version data entries
8 entries across 8 versions & 1 rubygems