Sha256: 07c827379defe68d2085d8db4de289285f011e943ba64e94520f64ed38f8dae8
Contents?: true
Size: 734 Bytes
Versions: 7
Compression:
Stored size: 734 Bytes
Contents
require "dry/container/stub" require "infusible/stub" RSpec.shared_context "with application dependencies" do using Infusible::Stub let(:configuration) { Etcher.new(<%= configuration.project_namespaced_class %>::Container[:defaults]).call.bind(&:dup) } let(:xdg_config) { Runcom::Config.new <%= configuration.project_namespaced_class %>::Container[:defaults_path] } let(:kernel) { class_spy Kernel } let(:logger) { Cogger.new io: StringIO.new, level: :debug, formatter: :emoji } before { <%= configuration.project_namespaced_class %>::Import.stub configuration:, xdg_config:, kernel:, logger: } after { <%= configuration.project_namespaced_class %>::Import.unstub :configuration, :xdg_config, :kernel, :logger } end
Version data entries
7 entries across 7 versions & 1 rubygems