From a68294c38460c27548285a7488433b4b965f3a7c Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 4 Sep 2024 12:57:25 +0100 Subject: [PATCH] Remote test adapter from test_helper.rb --- test/test_helper.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index bb585280..f8f4f4e4 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -64,18 +64,6 @@ class ActiveSupport::TestCase end end -class Kamal::Secrets::Adapters::Test < Kamal::Secrets::Adapters::Base - def login(account) - "MYSESSION" - end - - def fetch_from_vault(secrets, account:, session:) - raise "No Session" unless session == "MYSESSION" - raise "Boom!" if ENV["BOOM"] - secrets.to_h { |name| [ name, name.reverse ] } - end -end - class SecretAdapterTestCase < ActiveSupport::TestCase setup do `true` # Ensure $? is 0