test/lib/web_test.rb in sidekiq-benchmark-0.6.0 vs test/lib/web_test.rb in sidekiq-benchmark-0.7.0

- old
+ new

@@ -14,39 +14,39 @@ Test.flush_db end it "display index without stats" do get '/benchmarks' - last_response.status.must_equal 200 + _(last_response.status).must_equal 200 end it "display index with stats" do WorkerMock.new get '/benchmarks' - last_response.status.must_equal 200 + _(last_response.status).must_equal 200 end it "remove all benchmarks data" do WorkerMock.new - Sidekiq.redis { |conn| conn.keys("benchmark:*").wont_be_empty } + Sidekiq.redis { |conn| _(conn.keys("benchmark:*")).wont_be_empty } post '/benchmarks/remove_all' - last_response.status.must_equal 302 + _(last_response.status).must_equal 302 - Sidekiq.redis { |conn| conn.keys("benchmark:*").must_be_empty } + Sidekiq.redis { |conn| _(conn.keys("benchmark:*")).must_be_empty } end it "remove benchmark data" do WorkerMock.new - Sidekiq.redis { |conn| conn.keys("benchmark:sidekiq_benchmark_test_workermock:*").wont_be_empty } + Sidekiq.redis { |conn| _(conn.keys("benchmark:sidekiq_benchmark_test_workermock:*")).wont_be_empty } post '/benchmarks/remove', type: :sidekiq_benchmark_test_workermock - last_response.status.must_equal 302 + _(last_response.status).must_equal 302 - Sidekiq.redis { |conn| conn.keys("benchmark:sidekiq_benchmark_test_workermock:*").must_be_empty } + Sidekiq.redis { |conn| _(conn.keys("benchmark:sidekiq_benchmark_test_workermock:*")).must_be_empty } end end end end end