Sha256: 11dfff7d75328f4ff9d50c70382e7748f3e640f5f7c3202f91aede029310eebd
Contents?: true
Size: 530 Bytes
Versions: 9
Compression:
Stored size: 530 Bytes
Contents
RSpec.describe Mutest::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) { is_expected.to eql(Regexp::Token.new(:thing, :fake)) } its(:regexp_class) { is_expected.to be(expression_class) } it 'exposes list of types' do expect(table.types).to eql([:regexp_fake_thing]) end end
Version data entries
9 entries across 9 versions & 1 rubygems