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