http://bugzilla.opensuse.org/show_bug.cgi?id=1069441 http://bugzilla.opensuse.org/show_bug.cgi?id=1069441#c7 --- Comment #7 from Dominique Leuenberger <dimstar@opensuse.org> --- With this diff I can get the test to pass:
diff --git a/tests/console/rails.pm b/tests/console/rails.pm index c4f00c05..1769370f 100644 --- a/tests/console/rails.pm +++ b/tests/console/rails.pm @@ -21,9 +21,9 @@ sub run { # need to handle this on our own my $cmd = <<'EOF'; zypper -n in -C "rubygem(rails)" -rails new -B mycoolapp +rails new mycoolapp -B --skip-test cd mycoolapp -(rails server &) +(rails server -b 0.0.0.0 &) for i in {1..100} ; do sleep 0.1; curl -s http://localhost:3000 | grep "<title>Ruby on Rails" && break ; done pkill -f "rails server" || pumactl -P tmp/pids/server.pid stop EOF
For the tests to be usable, capybara and selenium-webdriver are missing in the distro (and they should be pullded in with zypper in -C "rubygem(rails)" As to why I need -b 0.0.0.0 in the server call I could not yet find out, but without it, I saw errors like getaddrinfo: Name or service now known (SocketError) -- You are receiving this mail because: You are on the CC list for the bug.