Class: CategoryTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Includes:
ChunkMatch
Defined in:
app/models/chunks/category_test.rb

Instance Method Summary collapse

Methods included from ChunkMatch

#match

Instance Method Details

#test_multiple_categoriesObject



14
15
16
17
18
19
# File 'app/models/chunks/category_test.rb', line 14

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

#test_single_categoryObject



8
9
10
11
12
# File 'app/models/chunks/category_test.rb', line 8

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