Revision 0dccf71e
Added by Djebran Lezzoum almost 6 years ago
test/models/operatingsystem_test.rb | ||
---|---|---|
should validate_numericality_of(:minor).is_greater_than_or_equal_to(0)
|
||
|
||
should allow_value(*valid_name_list).for(:name)
|
||
should_not allow_value(invalid_name_list).for(:name)
|
||
should_not allow_value(*invalid_name_list).for(:name)
|
||
|
||
should allow_value('1' * 5).for(:major)
|
||
should_not allow_values('1' * 6, '', -33).for(:major)
|
Also available in: Unified diff
Refs #22979 - Robottelo tests - operating_systems (#5804)