Sha256: f0072abe3e7247bc41c14309d04033584fe17d257534755e26b26c4ee4293bcc

Contents?: true

Size: 406 Bytes

Versions: 10

Compression:

Stored size: 406 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../helper")

require "active_job"

class RorVsWild::Plugin::ActiveJobTest < Minitest::Test
  include RorVsWildAgentHelper

  class SampleJob < ::ActiveJob::Base
    queue_as :default

    def perform
    end
  end

  def test_callback
    ActiveJob::Base.logger = Logger.new("/dev/null")
    agent.expects(:post_job)
    SampleJob.perform_now
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rorvswild-1.0.1 test/plugin/active_job_test.rb
rorvswild-1.0.0 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha8 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha7 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha6 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha5 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha4 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha3 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha2 test/plugin/active_job_test.rb
rorvswild-1.0.0.pre.alpha test/plugin/active_job_test.rb