Sha256: fcb7d54a719fc552295946e33150ae6df6ea7074ccc045f287c15b45b62b84c4

Contents?: true

Size: 195 Bytes

Versions: 1

Compression:

Stored size: 195 Bytes

Contents

def with_stubbed_config(options = {})
  defaults = Timetrap::Config.defaults.dup
  allow(Timetrap::Config).to receive(:[]) do |k|
    defaults.merge(options)[k]
  end
  yield if block_given?
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timetrap-1.15.4 spec/support/with_stubbed_config.rb