]> git.wincent.com - wikitext.git/commitdiff
Be more verbose about raised exception if Rails spec set-up fails
authorWincent Colaiuta <win@wincent.com>
Sun, 15 May 2011 09:39:57 +0000 (02:39 -0700)
committerWincent Colaiuta <win@wincent.com>
Sun, 15 May 2011 09:39:57 +0000 (02:39 -0700)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
spec/rails_spec.rb

index d477edcaebf460c855ee3d31bdca6c68d52b4793..c5d438a3cf55e0629fdfec2cdb72bee49faf94f9 100644 (file)
@@ -42,7 +42,7 @@ module RailsSpecs
       puts "\n*** COMMAND #{command_string} EXITED WITH NON-ZERO EXIT STATUS (#{result.status})"
       puts "*** STDOUT FOR COMMAND #{command_string}:", result.stdout
       puts "*** STDERR FOR COMMAND #{command_string}:", result.stderr
-      raise "non-zero exit status (#{result.status}) for '#{cmd}'"
+      raise "non-zero exit status (#{result.status}) for '#{command_string}'"
     end
     result
   end