From 15b20fd2c34f8d320183527f10b301997be699e2 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 17 May 2025 22:12:35 +0200 Subject: [PATCH] Fix spec --- spec/services/stats/calculate_month_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/services/stats/calculate_month_spec.rb b/spec/services/stats/calculate_month_spec.rb index 02cc7cc8..7f24adc3 100644 --- a/spec/services/stats/calculate_month_spec.rb +++ b/spec/services/stats/calculate_month_spec.rb @@ -71,7 +71,7 @@ RSpec.describe Stats::CalculateMonth do context 'when units are miles' do before do - user.update(settings: { distance_unit: 'mi' }) + user.update(settings: { maps: { distance_unit: 'mi' } }) end it 'creates stats' do