Sha256: 19a31cee3639594cf587e524e91d7198841102cd961abe6486d03d0d13d45da2

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

require 'test_helper'

class HostGroupsHelperTest < ActionView::TestCase
  include ActionView::Helpers::TagHelper
  include HostsAndHostgroupsHelper
  include ApplicationHelper

  test "should have the full string of the parent class if the child is a substring" do
    test_group = Hostgroup.create(:name => "test/st")

    assert hostgroup_name(test_group).include?("test/st")
    assert !hostgroup_name(test_group).include?("te/st")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/test/unit/helpers/host_groups_helper_test.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/test/unit/helpers/host_groups_helper_test.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/test/unit/helpers/host_groups_helper_test.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/test/unit/helpers/host_groups_helper_test.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/test/unit/helpers/host_groups_helper_test.rb