Initial commit
This commit is contained in:
10
spec/support/influx_helper.rb
Normal file
10
spec/support/influx_helper.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# InfluxDB test helpers
|
||||
module InfluxTestHelper
|
||||
def delete_measurments(measurement)
|
||||
Peatio::InfluxDB.client.query("delete from #{measurement}")
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.configure { |config| config.include InfluxTestHelper }
|
||||
Reference in New Issue
Block a user