Project

General

Profile

« Previous | Next » 

Revision 6e92e9a5

Added by Sam Kottler almost 12 years ago

  • ID 6e92e9a55bf4eea29fe1cf4c3e513e92191a60a2

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