Sha256: dab97f89572f410b6db5385d3c251a86a4293b48444e4b740c7aad1e68a08c9e

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

require 'test_helper'
require 'sidekiq-benchmark/testing'

class Sidekiq::Benchmark::TestingTest < Minitest::Spec
  describe 'Testing' do
    before do
      Sidekiq::Benchmark::Test.flush_db
      @worker = Sidekiq::Benchmark::Test::WorkerMock.new
    end

    it "save nothing to redis" do
      Sidekiq.redis do |conn|
        total_time = conn.hget("#{@worker.benchmark.redis_key}:total", :job_time)
        total_time.must_be_nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-benchmark-0.3.5 test/lib/testing.rb