mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
11 lines
244 B
Ruby
11 lines
244 B
Ruby
require 'test_helper'
|
|
|
|
class ProtocolKeywordTest < ActiveSupport::TestCase
|
|
|
|
def setup
|
|
@kw = protocol_keywords(:kw1)
|
|
end
|
|
|
|
should validate_presence_of(:name)
|
|
should validate_length_of(:name).is_at_most(Constants::NAME_MAX_LENGTH)
|
|
end
|