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.9.1 test/integration/queues/resque_test.rb
harness-0.9.0 test/integration/queues/resque_test.rb
harness-0.8.1 test/integration/queues/resque_test.rb
harness-0.8.0 test/integration/queues/resque_test.rb
harness-0.7.0 test/integration/queues/resque_test.rb
harness-0.6.0 test/integration/queues/resque_test.rb
harness-0.5.0 test/integration/queues/resque_test.rb
harness-0.4.0 test/integration/queues/resque_test.rb
harness-0.3.0 test/integration/queues/resque_test.rb
harness-0.2.16 test/integration/queues/resque_test.rb
harness-0.2.15 test/integration/queues/resque_test.rb
harness-0.2.14 test/integration/queues/resque_test.rb
harness-0.2.13 test/integration/queues/resque_test.rb
harness-0.2.12 test/integration/queues/resque_test.rb
harness-0.2.11 test/integration/queues/resque_test.rb
harness-0.2.10 test/integration/queues/resque_test.rb
harness-0.2.9 test/integration/queues/resque_test.rb
harness-0.2.8 test/integration/queues/resque_test.rb
harness-0.2.7 test/integration/queues/resque_test.rb
harness-0.2.6 test/integration/queues/resque_test.rb