Sha256: 6c414b520f081b3db257bcbdfae3a0e129b42234f316e71232cd78b45fd921d2

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hoptoad_notifier-2.4.11 test/recursion_test.rb
hoptoad_notifier-2.4.10 test/recursion_test.rb
hoptoad_notifier-2.4.9 test/recursion_test.rb
hoptoad_notifier-2.4.8 test/recursion_test.rb