Sha256: 5aae8534b9d5ce11a93a2e2d7d25375ce99ebb0702808ad975921f8566e720f7
Contents?: true
Size: 508 Bytes
Versions: 23
Compression:
Stored size: 508 Bytes
Contents
require_relative '../test_plugin_helper' class SettingTest < ActiveSupport::TestCase test "should update hostname prefix with multiple valid values" do setting = FactoryBot.create(:setting, :name => 'discovery_prefix', :value => 'mac', :category => 'Setting::Discovered') RFauxFactory.gen_strings(exclude: [:numeric, :alphanumeric]).values.each do |value| setting.value = value assert setting.valid?, "Can't update discovery_prefix setting with valid value #{value}" end end end
Version data entries
23 entries across 23 versions & 1 rubygems