Actualizar plugin Glossary a 1.1.0

This commit is contained in:
Manuel Cillero 2020-11-22 21:35:04 +01:00
parent 24560c8598
commit b9e569d03f
103 changed files with 954 additions and 2967 deletions

View 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