Sha256: e54b78b0ca51b97ab272482a510885c873398b211de375336fd2e3e15a097b48

Contents?: true

Size: 476 Bytes

Versions: 26

Compression:

Stored size: 476 Bytes

Contents

require 'test_helper'
require 'harness/queues/resque_queue'

class ResqueTest < IntegrationTest
  def setup
    super
    Resque.inline = true
    Harness.config.queue = :resque
  end

  def test_a_gauge_is_logged
    instrument "test-gauge", :gauge => true

    assert_gauge_logged "test-gauge"
  end

  def test_a_counter_is_logged
    instrument "test-counter", :counter => true

    assert_counter_logged "test-counter"

    assert_equal 1, counters.first.value
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
harness-0.2.5 test/integration/queues/resque_test.rb
harness-0.2.4 test/integration/queues/resque_test.rb
harness-0.2.3 test/integration/queues/resque_test.rb
harness-0.2.2 test/integration/queues/resque_test.rb
harness-0.2.1 test/integration/queues/resque_test.rb
harness-0.2.0 test/integration/queues/resque_test.rb