diff options
Diffstat (limited to 'test/systemu_test.rb')
-rw-r--r-- | test/systemu_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/systemu_test.rb b/test/systemu_test.rb index 19fac1d..6d4bf2b 100644 --- a/test/systemu_test.rb +++ b/test/systemu_test.rb @@ -17,6 +17,20 @@ Testing SystemU do assert{ stdout == stdin } end + testing 'silly hostnames' do + host = SystemU.instance_variable_get('@host') + silly_hostname = "silly's hostname with spaces" + begin + SystemU.instance_variable_set('@host', silly_hostname) + assert{ SystemU.instance_variable_get('@host') == silly_hostname } + stdin = '42' + status, stdout, stderr = assert{ systemu :bin/:cat, :stdin => stdin } + assert{ status == 0 } + ensure + assert{ SystemU.instance_variable_set('@host', host) } + end + end + end |