Skip to content

Commit 9739fc7

Browse files
committed
Cleaned up advanced hello test
1 parent ed2568e commit 9739fc7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test_advanced_hello.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@
2020
describe 'advanced_hello' do
2121
it "works for a random name" do
2222
ProcessPilot::pilot('advanced_hello.rb', :force_ruby_process_sync => true, :debug=> true) do |oStdin, iStdout|
23-
puts iStdout.readpartial(100) # => "Enter your name: "
23+
iStdout.readpartial(100) # => "Enter your name: "
2424
oStdin.write("daVE\n")
25-
puts iStdout.readpartial(100) # => What is your home town?
25+
iStdout.readpartial(100) # => What is your home town?
2626
oStdin.write("vienna\n")
27-
puts "input"
28-
puts iStdout.readpartial(100) # => What country is that in?
27+
iStdout.readpartial(100) # => What country is that in?
2928
oStdin.write("austria\n")
30-
puts output = iStdout.gets.chomp # => "Hello Boris the newt"
31-
assert_equal output, "Hello Dave! You are from Vienna, AUSTRIA."
29+
output = iStdout.gets.chomp # => "Hello Boris the newt"
30+
assert_equal "Hello Dave! You are from Vienna, AUSTRIA.", output
3231

3332
end
3433

0 commit comments

Comments
 (0)