Sha256: 430b3a57f9ecb427fe1cfe275dd109cbd1d892e0c16583ce2f1951071e049f97

Contents?: true

Size: 420 Bytes

Versions: 12

Compression:

Stored size: 420 Bytes

Contents

require 'test_helper'

class ResqueInlineTest < Minitest::Test
  def setup
    Resque.inline = true
    Resque.expects(:redis).never
  end

  def teardown
    Resque.inline = false
  end

  def test_runs_inline
    GoodJob.expects :perform
    Resque.enqueue(GoodJob)
  end

  def test_fails_inline
    assert_raises CustomException do
      Resque.enqueue(RetryCustomExceptionsJob, 'CustomException')
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
resque-retry-1.8.1 test/resque_inline_test.rb
resque-retry-1.8.0 test/resque_inline_test.rb
resque-retry-1.7.6 test/resque_inline_test.rb
resque-retry-1.7.5 test/resque_inline_test.rb
resque-retry-1.7.4 test/resque_inline_test.rb
resque-retry-1.7.3 test/resque_inline_test.rb
resque-retry-1.7.2 test/resque_inline_test.rb
resque-retry-1.7.1 test/resque_inline_test.rb
resque-retry-1.7.0 test/resque_inline_test.rb
resque-retry-1.6.0 test/resque_inline_test.rb
resque-retry-1.5.3 test/resque_inline_test.rb
resque-retry-1.5.2 test/resque_inline_test.rb