This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Yurek
committed
Mar 16, 2011
1 parent
4917739
commit 9f153b3
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require File.dirname(__FILE__) + '/helper' | ||
|
||
class RecursionTest < Test::Unit::TestCase | ||
should "not allow infinite recursion" do | ||
hash = {:a => :a} | ||
hash[:hash] = hash | ||
notice = HoptoadNotifier::Notice.new(:parameters => hash) | ||
assert_equal "[possible infinite recursion halted]", notice.parameters[:hash] | ||
end | ||
end |