test/lib/web_test.rb in sidekiq-benchmark-0.7.1 vs test/lib/web_test.rb in sidekiq-benchmark-0.7.2

- old
+ new

@@ -1,17 +1,21 @@ require 'test_helper' module Sidekiq module Benchmark module Test + TOKEN = SecureRandom.base64(32).freeze + describe "Web extention" do include Rack::Test::Methods def app @app ||= Sidekiq::Web end before do + env 'rack.session', { csrf: TOKEN } + env 'HTTP_X_CSRF_TOKEN', TOKEN Test.flush_db end it "display index without stats" do get '/benchmarks'