Sha256: 1ff6e5576ba99d111a079e90b31c74393384e17937fe99395121a3e748f0090c

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

require 'chunks/category'
require 'chunks/match'
require 'test/unit'

class CategoryTest < Test::Unit::TestCase
  include ChunkMatch

  def test_single_category
	match(Category, 'category: test', :list => ['test'], :hidden => nil)
	match(Category, 'category :   chunk test   ', :list => ['chunk test'], :hidden => nil)
	match(Category, ':category: test', :list => ['test'], :hidden => ':')
  end

  def test_multiple_categories
	match(Category, 'category: test, multiple', :list => ['test', 'multiple'], :hidden => nil)
	match(Category, 'category : chunk test , multi category,regression test case  ', 
		:list => ['chunk test','multi category','regression test case'], :hidden => nil
	)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Pimki-1.8.092 app/models/chunks/category_test.rb
Pimki-1.8.200 app/models/chunks/category_test.rb