Sha256: 3304cb52d9dd0fa4ddeebade072b3d9385dcbdd96c5a0f1063298341a2373b12
Contents?: true
Size: 472 Bytes
Versions: 40
Compression:
Stored size: 472 Bytes
Contents
require_relative '../../test_helper' require 'rack' require 'logster/redis_store' require 'logster/middleware/reporter' class TestReporter < Minitest::Test def test_logs_errors Logster.store = Logster::TestStore.new reporter = Logster::Middleware::Reporter.new(nil) env = Rack::MockRequest.env_for("/logs/report_js_error?message=hello") status, = reporter.call(env) assert_equal(200, status) assert_equal(1, Logster.store.count) end end
Version data entries
40 entries across 40 versions & 1 rubygems