Project

General

Profile

Download (446 Bytes) Statistics
| Branch: | Tag: | Revision:
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
(11-11/26)