test/fbe/test_repeatedly.rb in fbe-0.0.46 vs test/fbe/test_repeatedly.rb in fbe-0.0.47

- old
+ new

@@ -23,26 +23,29 @@ # SOFTWARE. require 'minitest/autorun' require 'loog' require 'factbase' +require 'judges/options' require_relative '../test__helper' require_relative '../../lib/fbe/repeatedly' # Test. # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2024 Zerocracy # License:: MIT class TestRepeatedly < Minitest::Test def test_simple $fb = Factbase.new - loog = Loog::NULL + $loog = Loog::NULL + $options = Judges::Options.new judge = 'test' $global = {} 3.times do - Fbe.repeatedly('pmp', 'every_x_hours', loog:, judge:) do |f| + Fbe.repeatedly('pmp', 'every_x_hours', judge:) do |f| f.foo = 42 end end assert_equal(1, $fb.size) + assert_equal(42, $fb.query('(always)').each.to_a.first.foo) end end