Sha256: aaa528844478a5d3d43bbd8e23fb03d6883f301e383c27e12d666d2bed4f937b
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
require "dry/container/stub" RSpec.shared_context "with application container" do using Refinements::Structs include_context "with temporary directory" let(:container) { <%= configuration.project_class %>::Container } let(:configuration) { <%= configuration.project_class %>::Configuration::Loader.with_defaults.call } let(:kernel) { class_spy Kernel } before do container.enable_stubs! container.stub :configuration, configuration container.stub :kernel, kernel end after do container.unstub :configuration container.unstub :kernel end end
Version data entries
3 entries across 3 versions & 1 rubygems