redding / assert

Assertion style testing framework.
https://github.com/redding/assert
MIT License
10 stars 1 forks source link

Fix for assert failing when the HOME environment variable is not set #77

Closed jcredding closed 13 years ago

jcredding commented 13 years ago

@kelredd @tpett This should keep assert from breaking when trying to expand that path. The exception thrown is an ArgumentError, which is not very specific, otherwise I would have rescued the exception instead. Because it's a very generic exception, I thought just checking that the ENV['HOME'] is not nil should keep it from failing.