redmine_glossary/test/unit/glossary_term_test.rb @ fd7c3c3d
| 5785342c | Toru Takahashi | require File.expand_path('../../test_helper', __FILE__)
|
||
class GlossaryTermTest < ActiveSupport::TestCase
|
||||
| 78128799 | Toru Takahashi | fixtures :glossary_terms
|
||
plugin_fixtures :glossary_terms
|
||||
| 5785342c | Toru Takahashi | |||
| 78128799 | Toru Takahashi | 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
|
||||
| 5785342c | Toru Takahashi | end
|
||
end
|