1
2
3
4
5
6
7
8
9
10
11
12
13
# The fixtures directory serves as the data directory: its contacts/
# holds the card the recorded macOS exchange asked for, so the replay
# resolves the same hrefs the client did. Nothing else is set up:
# requiring the app has no side effects, and config.ru never runs here.
require "pathname"
ENV["PRO_TACTS_DATA_DIR"] = (Pathname.new(__dir__) / "fixtures").to_s
# Several tests provoke 404s. Keep the captures out of log/ and out of the
# fixtures; UnhandledRequestsTest points the middleware at its own tmpdir.
ENV["PRO_TACTS_UNHANDLED_DIR"] = (Pathname.new(__dir__).parent / "tmp" / "test-unhandled").to_s
require "minitest/autorun"