From 4d0ed0ea4b53690f55f2638717dbe266ad3c5ff6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 6 Sep 2013 21:51:27 +0000 Subject: test/*.rb: test/unit compatibility assert() in test/unit does not automatically stringify the failure message, unlike minitest. I don't have a strong opinion regarding minitest and test/unit, but the deprecation notices in minitest 5 are annoying, so perhaps using Test::Unit via minitest shim is a better way to go. --- test/player_integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/player_integration.rb') diff --git a/test/player_integration.rb b/test/player_integration.rb index 8ff1be2..5ca3e43 100644 --- a/test/player_integration.rb +++ b/test/player_integration.rb @@ -92,7 +92,7 @@ module PlayerIntegration def tmp_noise(len = 5) noise = Tempfile.open(%w(junk .sox)) cmd = %W(sox -R -n -r44100 -c2 #{noise.path} synth #{len} pluck) - assert system(*cmd), cmd + assert system(*cmd), cmd.inspect [ noise, len ] end -- cgit v1.2.3-24-ge0c7