Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e27f63f

Browse files
Add tests to ensure wget stdout does not have error: can't connect
Change-Id: If98097ad5d3303e7ae1ea2c964f1e04ade247674
1 parent 1800b0f commit e27f63f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎spec/localhost/python_simplehttpserver_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ def image
9393

9494
describe command('wget -O - http://localhost:8080/helloworld.txt') do
9595
its(:stdout) { should match /^hello simple world$/ }
96+
its(:stderr) { is_expected.not_to match /can't connect/ }
9697
end
9798

9899
describe command('wget -O - http://localhost:8080/') do
99100
its(:stdout) { should match /Directory listing for \// }
100101
its(:stdout) { should match /<a href="helloworld\.txt">helloworld\.txt<\/a>/ }
102+
its(:stderr) { is_expected.not_to match /can't connect/ }
101103
end
102104
end
103105
end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /