summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-12 22:06:48 +0200
committerChris Schlaeger <chris@linux.com>2015-10-12 22:06:48 +0200
commite5f2b409d1ef1e27884c760d563e43f72b660511 (patch)
tree4c05c15b037efbe4ba045e3fd72af2c2ba0e853a /spec
parentfa088e932bf15e7c7d00d4a04c8786bcb9a11ed2 (diff)
downloadpostrunner-e5f2b409d1ef1e27884c760d563e43f72b660511.zip
Remove not needed files.v0.0.10
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 4 insertions, 1 deletions
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