mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
Necessary to provide application wide access to the configuration which will soon be shared by the newly renamed requester and client (not implemented yet). Milestone: minor
18 lines
460 B
Ruby
18 lines
460 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.shared_context "with application dependencies" do
|
|
let :settings do
|
|
TRMNL::API::Configuration::Content[
|
|
content_type: "application/json",
|
|
uri: "https://trmnl.app/api"
|
|
]
|
|
end
|
|
|
|
let(:logger) { Cogger.new id: "trmnl-api", io: StringIO.new, level: :debug }
|
|
let(:http) { class_spy HTTP }
|
|
|
|
before { TRMNL::API::Container.stub! settings:, http:, logger: }
|
|
|
|
after { TRMNL::API::Container.restore }
|
|
end
|