From e5f2b409d1ef1e27884c760d563e43f72b660511 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Mon, 12 Oct 2015 22:06:48 +0200 Subject: Remove not needed files. --- spec/spec_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3b7ea85..e91cffd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,6 +35,7 @@ def create_fit_activity(date, duration_minutes) :device_index => 0 }) a.new_device_info({ :timestamp => ts, :manufacturer => 'garmin', :device_index => 1, :battery_status => 'ok' }) + laps = 0 0.upto((a.total_timer_time / 60) - 1) do |mins| a.new_record({ :timestamp => ts, @@ -53,7 +54,9 @@ def create_fit_activity(date, duration_minutes) }) if mins > 0 && mins % 5 == 0 - a.new_lap({ :timestamp => ts, :sport => 'running' }) + a.new_lap({ :timestamp => ts, :sport => 'running', + :message_index => laps }) + laps += 1 end ts += 60 end -- cgit v1.2.3