Sha256: 47fbd8a1fe2d83182d4ab2b80835863980377b00627db34e27027c5fa3e89614

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
projectlocker_pulse-1.0.0 test/recursion_test.rb
projectlocker_pulse-0.2.1 test/recursion_test.rb