Sha256: b57f6317a1135101b7c3867b4bece1f394582267c7a29ab43a7a26b4e4949e7e
Contents?: true
Size: 514 Bytes
Versions: 6
Compression:
Stored size: 514 Bytes
Contents
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
6 entries across 6 versions & 1 rubygems