Fix missing iso_timestamp variable by using time.iso8601 directly

This commit is contained in:
Sascha Zepter 2024-10-07 00:16:37 +00:00
parent f1f6d2c715
commit 40a94c16f1

View file

@ -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