Sha256: e8c302f3cb641952c7cb491acc00c6e4b4f04bfdb39a58b1f5af475b23d531b9

Contents?: true

Size: 322 Bytes

Versions: 15

Compression:

Stored size: 322 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 = Airbrake::Notice.new(:parameters => hash)
    assert_equal "[possible infinite recursion halted]", notice.parameters[:hash]
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
airbrake-3.1.2 test/recursion_test.rb
airbrake-3.1.1 test/recursion_test.rb
airbrake-3.1.0 test/recursion_test.rb
airbrake-3.0.9 test/recursion_test.rb
airbrake-3.0.8 test/recursion_test.rb
airbrake-3.0.7 test/recursion_test.rb
airbrake-3.0.6 test/recursion_test.rb
airbrake-3.0.5 test/recursion_test.rb
airbrake-3.0.4 test/recursion_test.rb
airbrake-3.0.3 test/recursion_test.rb
airbrake-3.0.2 test/recursion_test.rb
airbrake-3.0.1 test/recursion_test.rb
airbrake-3.0 test/recursion_test.rb
airbrake-3.0.rc2 test/recursion_test.rb
airbrake-3.0.rc1 test/recursion_test.rb