Permalink
Browse files

Initalize the message (for Ruby 1.8.7)

  • Loading branch information...
1 parent eefa62c commit f32eade3c0aa2ab351618db62eddd82cb2ffe570 @yabawock yabawock committed Dec 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/test_helper.rb
View
@@ -29,6 +29,7 @@ def assert_generates(expected_path, generated_path)
generated_path, extra_keys = generated_path if generated_path.is_a?(Array)
generated_path << "?#{extra_keys.to_query}" unless extra_keys.blank?
+ message ||= ''
msg = build_message(message, "The generated path <?> did not match <?>", generated_path, expected_path)
assert_equal(expected_path, generated_path, msg)
end

0 comments on commit f32eade

Please sign in to comment.