466
466
# Create another cron so we prefetch two of them
467
@type.create(:name => "testing", :minute => 30, :command => "whatever", :user => "you")
467
@type.new(:name => "testing", :minute => 30, :command => "whatever", :user => "you")
469
469
assert_nothing_raised("Could not prefetch cron") do
470
470
@provider.prefetch([matchers, nonmatchers].flatten.inject({}) { |crons, cron| crons[cron.name] = cron; crons })