+10
−0
.idea/workspace.xml
0 → 100644
+262
−0
+10
−0
docker-compose.yml
0 → 100644
+10
−0
+42
−83
File changed.
Preview size limit exceeded, changes collapsed.
Loading
Drop the hand-rolled in-memory FakeRedis used in rate_limit_spec.rb in
favour of a real redis:7-alpine instance, so the rate-limit specs exercise
the same client semantics (TTL, pipelining, EXPIRE) as production.
Add docker-compose.yml exposing Redis on host port 6390 (offset to avoid
colliding with a local GDK / Caproni Redis on 6379).
spec/support/test_redis.rb auto-starts the container on first use and
registers an at_exit hook to tear it down again. Autostart is skipped in
CI (the rspec job now declares redis:7-alpine as a service) and when
LABKIT_TEST_REDIS_URL is explicitly set.
The "redis error" matrix case still uses an instance_double so it can
deterministically raise without depending on container state.
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>
File changed.
Preview size limit exceeded, changes collapsed.