Sha256: ac9c8d6eb8ccbbf82a3853e07ebcf4c679e578ed8cd2448968d830ea6a6ef894
Contents?: true
Size: 1.09 KB
Versions: 6
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module CanHaveStubbedResults module Commands class FetchAllServicesStubbedResultsCache < Support::Command ## # @return [ConvenientService::Support::Cache] # # @internal # NOTE: `::RSpec.current_example` docs. # - https://www.rubydoc.info/github/rspec/rspec-core/RSpec.current_example # - https://github.com/rspec/rspec-core/blob/v3.12.0/lib/rspec/core.rb#L122 # - https://relishapp.com/rspec/rspec-core/docs/metadata/current-example # def call if Support::Gems::RSpec.current_example Utils::Object.memoize_including_falsy_values(Support::Gems::RSpec.current_example, :@__convenient_service_stubbed_results__) { Support::Cache.create(backend: :thread_safe_array) } else Support::Cache.create(backend: :thread_safe_array) end end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems