cartodb-4.42/spec/lib/resque/tracking_jobs_spec.rb

16 lines
417 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require 'spec_helper'
describe Resque::TrackingJobs do
describe Resque::TrackingJobs::SendPubSubEvent do
it 'should send event to PubSub tracker' do
Singleton.__init__(PubSubTracker)
PubSubTracker.any_instance.stubs(:initialize)
PubSubTracker.any_instance.expects(:send_event).once
Resque.enqueue(Resque::TrackingJobs::SendPubSubEvent, 'user_id', 'event_name', {})
end
end
end