test/plezi_tests.rb in plezi-0.12.15 vs test/plezi_tests.rb in plezi-0.12.16

- old
+ new

@@ -333,13 +333,13 @@ puts " **** Streaming test FAILED TO RUN #{e.message}!!!" puts e end end def test_url_for - test_url = "/some/path/test/my_url/ask/" - puts " * simple #url_for test: #{RESULTS[URI.parse("http://localhost:3000" + test_url).read == test_url]}" - test_url = "/some/another_path/my_url/ask/" + test_url = "/some/path/test/my_url/ask" + puts " * simple #url_for test: #{RESULTS[(URI.parse("http://localhost:3000" + test_url).read == test_url) || puts("Got path: #{URI.parse("http://localhost:3000" + test_url).read}")]}" + test_url = "/some/another_path/my_url/ask" puts " * missing arguments #url_for test: #{RESULTS[URI.parse("http://localhost:3000" + test_url).read == test_url]}" rescue => e puts " **** #url_for test FAILED TO RUN!!!" puts e @@ -362,10 +362,10 @@ puts " * Websocket unicast testing: #{RESULTS[false]}" unicast_test = :failed end end ws2 = Iodine::Http::WebsocketClient.connect("ws://localhost:3000/") do |data| - next unless @is_connected || !( (@is_connected = true) ) + next unless @is_connected || !( ( @is_connected = true ) == true ) if data == "unicast" puts " * Websocket unicast message test: #{RESULTS[false]}" unicast_test = :failed next else