Sha256: 29632ba5a3f54886fffc21ec528a2a6bca59750d318ca2ef15febcf2a7b74f09

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

shared_context "precision:seconds", precision: :s do
  around do |ex|
    old_precision = Influxer.config.time_precision
    Influxer.config.time_precision = "s"
    ex.run
    Influxer.config.time_precision = old_precision
  end
end

shared_context "with_duration_suffix", duration_suffix: true do
  around do |ex|
    old_duration = Influxer.config.time_duration_suffix_enabled
    Influxer.config.time_duration_suffix_enabled = true
    ex.run
    Influxer.config.time_duration_suffix_enabled = old_duration
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
influxer-1.2.0 spec/support/shared_contexts/shared_precision.rb