Sha256: 196777e0b5f79f2d94fd090b5afdaf97dca3de1060781641d6b42d2ebcb09dc5

Contents?: true

Size: 326 Bytes

Versions: 35

Compression:

Stored size: 326 Bytes

Contents

require File.expand_path '../helper', __FILE__

class RecursionTest < Test::Unit::TestCase
  should "not allow infinite recursion" do
    hash = {:a => :a}
    hash[:hash] = hash
    notice = Airbrake::Notice.new(:parameters => hash)
    assert_equal "[possible infinite recursion halted]", notice.parameters[:hash]
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
airbrake-3.1.13 test/recursion_test.rb
airbrake-3.1.12 test/recursion_test.rb
airbrake-3.1.11 test/recursion_test.rb
airbrake-3.1.10 test/recursion_test.rb
airbrake-3.1.9 test/recursion_test.rb
projectlocker_errata-0.1.1 test/recursion_test.rb
projectlocker_errata-0.1.0 test/recursion_test.rb
airbrake-3.1.8 test/recursion_test.rb
airbrake-3.1.7 test/recursion_test.rb
airbrake-3.1.6 test/recursion_test.rb
airbrake-3.1.5 test/recursion_test.rb
projectlocker_errata-0.0.2 test/recursion_test.rb
projectlocker_errata-0.0.1 test/recursion_test.rb
airbrake-3.1.4 test/recursion_test.rb
airbrake-3.1.3 test/recursion_test.rb