Sha256: b21168721182d211161c0be6cc134ba19b568322b5ed16fb01c14f9f6d1f9bdb

Contents?: true

Size: 258 Bytes

Versions: 19

Compression:

Stored size: 258 Bytes

Contents

require 'dentaku/token'

describe Dentaku::Token do
  it 'should have a category and a value' do
    token = Dentaku::Token.new(:numeric, 5)
    token.category.should eq(:numeric)
    token.value.should eq(5)
    token.is?(:numeric).should be_true
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dentaku-1.0.0 spec/token_spec.rb
dentaku-0.2.14 spec/token_spec.rb
dentaku-0.2.13 spec/token_spec.rb
dentaku-0.2.12 spec/token_spec.rb
dentaku-0.2.11 spec/token_spec.rb
dentaku-0.2.10 spec/token_spec.rb
dentaku-0.2.9 spec/token_spec.rb
dentaku-0.2.8 spec/token_spec.rb
dentaku-0.2.7 spec/token_spec.rb
dentaku-0.2.6 spec/token_spec.rb
dentaku-0.2.5 spec/token_spec.rb
dentaku-0.2.4 spec/token_spec.rb
dentaku-0.2.3 spec/token_spec.rb
dentaku-0.2.2 spec/token_spec.rb
dentaku-0.2.1 spec/token_spec.rb
dentaku-0.1.3 spec/token_spec.rb
dentaku-0.1.2 spec/token_spec.rb
dentaku-0.1.1 spec/token_spec.rb
dentaku-0.1.0 spec/token_spec.rb