test/canada_test.rb in canada-0.0.1 vs test/canada_test.rb in canada-0.0.2
- old
+ new
@@ -35,6 +35,11 @@
nil
]
cases.each { |c| assert_equal c.inspect, aboot(c) }
end
+
+ def test_exceptions_to_s
+ assert_equal "I'm sorry, but something went wrong...", Exception.new("something went wrong...").to_s
+ assert_equal "I'm sorry, but something went wrong...", Exception.new("something went wrong...").message
+ end
end
\ No newline at end of file