mirror of
https://github.com/Freika/dawarich.git
synced 2026-05-22 22:48:32 -05:00
Disable specs for track generation
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ class Point < ApplicationRecord
|
||||
after_create :async_reverse_geocode, if: -> { DawarichSettings.store_geodata? && !reverse_geocoded? }
|
||||
after_create :set_country
|
||||
after_create_commit :broadcast_coordinates
|
||||
after_create_commit :trigger_incremental_track_generation, if: -> { import_id.nil? }
|
||||
# after_create_commit :trigger_incremental_track_generation, if: -> { import_id.nil? }
|
||||
# after_commit :recalculate_track, on: :update, if: -> { track.present? }
|
||||
|
||||
def self.without_raw_data
|
||||
|
||||
@@ -30,7 +30,7 @@ RSpec.describe Point, type: :model do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#recalculate_track' do
|
||||
xdescribe '#recalculate_track' do
|
||||
let(:point) { create(:point, track: track) }
|
||||
let(:track) { create(:track) }
|
||||
|
||||
@@ -121,7 +121,7 @@ RSpec.describe Point, type: :model do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#trigger_incremental_track_generation' do
|
||||
xdescribe '#trigger_incremental_track_generation' do
|
||||
let(:point) do
|
||||
create(:point, track: track, import_id: nil, timestamp: 1.hour.ago.to_i, reverse_geocoded_at: 1.hour.ago)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user