Sha256: fc6395aeb2d43870a3cc91d746369d985781ed7a7654d96cceedcb71c89b772f

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

shared_context "stub_query", :query do
  let(:client) { Influxer.client }

  before do
    # Stub all query methods
    allow_any_instance_of(InfluxDB::Client).to receive(:query) do |_, sql|
      sql
    end

    allow_any_instance_of(InfluxDB::Client).to receive(:time_precision)

    allow_any_instance_of(InfluxDB::Client).to receive(:post)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
influxer-1.0.1 spec/support/shared_contexts/shared_query.rb
influxer-1.0.0 spec/support/shared_contexts/shared_query.rb
influxer-0.5.4 spec/support/shared_contexts/shared_query.rb
influxer-0.5.3 spec/support/shared_contexts/shared_query.rb
influxer-0.5.2 spec/support/shared_contexts/shared_query.rb
influxer-0.5.1 spec/support/shared_contexts/shared_query.rb
influxer-0.5.0 spec/support/shared_contexts/shared_query.rb