Sha256: 7c991b658183452275d0559eb5e0f7068372f949c851b98677cb91b673a7e476
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true require 'invar' module Invar # Extension to the standard class class Scope # Overrides the given set of key-value pairs. This is intended to only be used in testing environments, # where you may need contextual adjustments to suit the test situation. # # @param [Hash] pairs the hash of pairs to override. def pretend(pairs) @data_override.merge!(pairs.transform_keys(&:to_sym)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
invar-0.6.1 | lib/invar/test.rb |
invar-0.6.0 | lib/invar/test.rb |
invar-0.5.1 | lib/invar/test.rb |
invar-0.5.0 | lib/invar/test.rb |
invar-0.4.0 | lib/invar/test.rb |