test/test_helper.rb in prefab-cloud-ruby-0.11.0 vs test/test_helper.rb in prefab-cloud-ruby-0.12.0
- old
+ new
@@ -3,15 +3,15 @@
class MockBaseClient
STAGING_ENV_ID = 1
PRODUCTION_ENV_ID = 2
TEST_ENV_ID = 3
- attr_reader :namespace, :logger, :config_client
+ attr_reader :namespace, :logger, :config_client, :options
- def initialize(namespace: "")
-
+ def initialize(options = Prefab::Options.new)
+ @options = options
@namespace = namespace
- @logger = Logger.new($stdout)
+ @logger = Prefab::LoggerClient.new($stdout)
@config_client = MockConfigClient.new
end
def project_id
1