Actualizar plugin Glossary a 1.1.0
This commit is contained in:
parent
24560c8598
commit
b9e569d03f
103 changed files with 954 additions and 2967 deletions
15
plugins/redmine_glossary/test/unit/glossary_category_test.rb
Normal file
15
plugins/redmine_glossary/test/unit/glossary_category_test.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# coding: utf-8
|
||||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class GlossaryCategoryTest < ActiveSupport::TestCase
|
||||
fixtures :glossary_categories
|
||||
plugin_fixtures :glossary_categories
|
||||
|
||||
def setup
|
||||
@category = glossary_categories('color')
|
||||
end
|
||||
|
||||
def test_valid
|
||||
assert @category.valid?
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class GlossaryStyleTest < ActiveSupport::TestCase
|
||||
fixtures :glossary_styles
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
end
|
||||
end
|
21
plugins/redmine_glossary/test/unit/glossary_term_test.rb
Normal file
21
plugins/redmine_glossary/test/unit/glossary_term_test.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
require File.expand_path('../../test_helper', __FILE__)
|
||||
|
||||
class GlossaryTermTest < ActiveSupport::TestCase
|
||||
fixtures :glossary_terms
|
||||
plugin_fixtures :glossary_terms
|
||||
|
||||
def setup
|
||||
@term = glossary_terms('red')
|
||||
end
|
||||
|
||||
def test_valid
|
||||
assert @term.valid?
|
||||
end
|
||||
|
||||
def test_invalid_without_name
|
||||
@term.name = nil
|
||||
assert_raises ActiveRecord::NotNullViolation do
|
||||
@term.save
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class GrossaryStyleTest < ActiveSupport::TestCase
|
||||
fixtures :grossary_styles
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TermCategoryTest < ActiveSupport::TestCase
|
||||
fixtures :term_categories
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TermQueryTest < ActiveSupport::TestCase
|
||||
fixtures :term_queries
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
end
|
||||
end
|
|
@ -1,10 +0,0 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class TermTest < ActiveSupport::TestCase
|
||||
fixtures :terms
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue