From 40a94c16f15608a386d002002ba391552542bcc5 Mon Sep 17 00:00:00 2001 From: Sascha Zepter <60738409+saschazepter@users.noreply.github.com> Date: Mon, 7 Oct 2024 00:16:37 +0000 Subject: [PATCH] Fix missing iso_timestamp variable by using time.iso8601 directly --- spec/services/google_maps/records_parser_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/google_maps/records_parser_spec.rb b/spec/services/google_maps/records_parser_spec.rb index 0c521112..70c50fe9 100644 --- a/spec/services/google_maps/records_parser_spec.rb +++ b/spec/services/google_maps/records_parser_spec.rb @@ -54,7 +54,7 @@ RSpec.describe GoogleMaps::RecordsParser do it 'parses ISO 8601 timestamp correctly' do expect { parser }.to change(Point, :count).by(1) created_point = Point.last - expect(created_point.timestamp).to eq(DateTime.parse(iso_timestamp).to_i) + expect(created_point.timestamp).to eq(DateTime.parse(time.iso8601).to_i) end end