Sha256: 65f51050481541b430d361cd8ea00a8fa298a10a345db8187585f67a96f5f789

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

require 'abstract_unit'
include ActsAsIndexed

class TokenizerTest < ActiveSupport::TestCase

  def test_splits_tokens_to_array
    assert_equal ["Chocolate", "Chip", "Cookies"], Tokenizer.process("Chocolate Chip Cookies ")
  end

  def test_deals_with_multiple_spaces
    assert_equal ["Chocolate", "Chip", "Cookies"], Tokenizer.process("Chocolate   Chip    Cookies ")
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_indexed-0.8.1 test/tokenizer_test.rb
acts_as_indexed-0.8.0 test/tokenizer_test.rb