test/scout_test.rb in scout-5.6.4 vs test/scout_test.rb in scout-5.6.5.pre
- old
+ new
@@ -580,9 +580,15 @@
scout(@roles_account.key, "--fqdn", fqdn_override)
client=@roles_account.clients.last
assert_equal fqdn_override, client.fqdn
end
+ def test_fqdn_has_newline
+ scout(@roles_account.key, "--fqdn", "db-1.foobar.com\n")
+ client=@roles_account.clients.last
+ assert_equal "db-1.foobar.com", client.fqdn
+ end
+
######################
### Helper Methods ###
######################