test/zold/stress/test_air.rb in zold-stress-0.1.0 vs test/zold/stress/test_air.rb in zold-stress-0.2.0
- old
+ new
@@ -31,11 +31,11 @@
air = Zold::Stress::Air.new
pmt = { start: Time.now, source: Zold::Id::ROOT, target: Zold::Id::ROOT, details: 'Hi!' }
air.add(pmt)
assert_equal(1, air.fetch.count)
air.fetch.each do |p|
- assert_equal(pmt, p)
+ assert_equal(pmt[:details], p[:details])
end
- air.delete(pmt)
+ air.delete(air.fetch[0])
assert_equal(0, air.fetch.count)
end
end