Sha256: c89c828bd411384749aff76a5c65096cf0db2ef19aba8e70c4894362af61cac7

Contents?: true

Size: 327 Bytes

Versions: 39

Compression:

Stored size: 327 Bytes

Contents

require 'test_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

39 entries across 39 versions & 1 rubygems

Version Path
foreman_discovery-9.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-8.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-8.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-7.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-7.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-6.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-5.0.2 test/unit/setting_discovered_test.rb
foreman_discovery-5.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-5.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-4.1.2 test/unit/setting_discovered_test.rb
foreman_discovery-4.1.1 test/unit/setting_discovered_test.rb
foreman_discovery-4.1.0 test/unit/setting_discovered_test.rb
foreman_discovery-4.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-2.0.2 test/unit/setting_discovered_test.rb
foreman_discovery-2.0.1 test/unit/setting_discovered_test.rb
foreman_discovery-3.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-2.0.0 test/unit/setting_discovered_test.rb
foreman_discovery-2.0.0.rc2 test/unit/setting_discovered_test.rb
foreman_discovery-2.0.0.rc1 test/unit/setting_discovered_test.rb
foreman_discovery-1.4.1 test/unit/setting_discovered_test.rb