Sha256: 6a4ffa8464f99b93bb9ccdce5f9f3bffd6bb83370c8636612b2952da6c517339

Contents?: true

Size: 334 Bytes

Versions: 12

Compression:

Stored size: 334 Bytes

Contents

require 'test_plugin_helper'

class SettingDiscoveredTest < ActiveSupport::TestCase
  test "can create setting of discovered type" do
    assert Setting.create(:name => "foo", :default => "bar", :description => "test foo", :category => "Setting::Discovered")
    s = Setting::Discovered.first
    assert_equal "foo", s.name
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_discovery-13.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-12.0.2 test/unit/setting_discovered_test.rb
foreman_discovery-12.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-12.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-11.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.5 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.4 test/unit/setting_discovered_test.rb
foreman_discovery-10.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.3 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.2 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.1 test/unit/setting_discovered_test.rb
foreman_discovery-9.1.0 test/unit/setting_discovered_test.rb