Project

General

Profile

« Previous | Next » 

Revision 1c03cb48

Added by Sam Kottler almost 12 years ago

  • ID 1c03cb48d7236f96b84b8eb68a17f04abb88db9b

Fixes #1789 - Parent hostgroup name is truncated when its sub-group is a sub-string of the parent hostgroup name

View differences:

test/unit/helpers/host_groups_helper_test.rb
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

Also available in: Unified diff