Revision 1704e000
Added by Florian Koch over 12 years ago
- ID 1704e000a517c327f26ffd728cbc7ca273ad7593
test/unit/host_test.rb | ||
---|---|---|
assert_equal ["#{pc} does not belong to the #{h.environment} environment"], h.errors[:puppetclasses]
|
||
end
|
||
|
||
test "name should be lowercase" do
|
||
h = hosts(:redhat)
|
||
assert h.valid?
|
||
h.name.upcase!
|
||
assert !h.valid?
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #1313 ensure all host names are lowercased
Signed-off-by: Florian Koch <florian.koch1981@googlemail.com>