Files
gentoo/dev-ruby/rack-cache/files/rack-cache-1.13.0-test-require.patch
Sam James 873608c1ca dev-ruby/rack-cache: enable ruby32, fix tests, use modern mocha
- Enable ruby32
- Fix test failure which shows up for some folks (missing timeout require)
- Update mocha dep & patch mocha require accordingly (upstream patch)

Closes: https://bugs.gentoo.org/723920
Signed-off-by: Sam James <sam@gentoo.org>
2023-04-03 04:02:58 +01:00

29 lines
880 B
Diff

https://github.com/rack/rack-cache/pull/14
From db34e2b5ab7b16051f7158b2896e56502992c33e Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Mon, 3 Apr 2023 03:31:31 +0100
Subject: [PATCH] test: Add explicit 'timeout' require
Fixes the following when running tests individually:
```
1) Error:
Rack::Cache::Context#test_0078_passes if there was a metastore exception:
NameError: uninitialized constant Timeout
test/context_test.rb:981:in `block (3 levels) in <top (required)>'
test/test_helper.rb:170:in `request'
test/test_helper.rb:177:in `get'
test/context_test.rb:980:in `block (2 levels) in <top (required)>'
```
Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/context_test.rb
+++ b/test/context_test.rb
@@ -1,4 +1,5 @@
require_relative 'test_helper'
+require 'timeout'
require 'rack/cache/context'
describe Rack::Cache::Context do