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

Version Path
mutest-0.0.10 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.9 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.8 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.7 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.6 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.5 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.4 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.3 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb
mutest-0.0.2 spec/unit/mutest/ast/regexp/transformer/lookup_table/table_spec.rb