Sha256: 654017d1bd2bfc6e1c87b9382f207f39108ba93c17f58e888ea2358590eb370d

Contents?: true

Size: 264 Bytes

Versions: 21

Compression:

Stored size: 264 Bytes

Contents

require 'dentaku/token'

describe Dentaku::Token do
  it 'has a category and a value' do
    token = Dentaku::Token.new(:numeric, 5)
    expect(token.category).to eq(:numeric)
    expect(token.value).to eq(5)
    expect(token.is?(:numeric)).to be_truthy
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
dentaku-3.0.0 spec/token_spec.rb
dentaku-2.0.11 spec/token_spec.rb
dentaku-2.0.10 spec/token_spec.rb
dentaku-2.0.9 spec/token_spec.rb
dentaku-2.0.8 spec/token_spec.rb
dentaku-2.0.7 spec/token_spec.rb
dentaku-2.0.6 spec/token_spec.rb
dentaku-2.0.5 spec/token_spec.rb
dentaku-2.0.4 spec/token_spec.rb
dentaku-2.0.3 spec/token_spec.rb
dentaku-2.0.2 spec/token_spec.rb
dentaku-2.0.1 spec/token_spec.rb
dentaku-2.0.0 spec/token_spec.rb
dentaku-1.2.6 spec/token_spec.rb
dentaku-1.2.5 spec/token_spec.rb
dentaku-1.2.4 spec/token_spec.rb
dentaku-1.2.3 spec/token_spec.rb
dentaku-1.2.2 spec/token_spec.rb
dentaku-1.2.1 spec/token_spec.rb
dentaku-1.2.0 spec/token_spec.rb