summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-03-24 20:21:20 +0100
committerChris Schlaeger <chris@linux.com>2016-03-24 20:21:20 +0100
commitae2c2a9c3b78c90a9718107d2d95aeb1b360491a (patch)
tree1ea13e462929eb9f86c1f2ec19830d104c78fcba /spec
parent816931a37ab5803ee18c745b3b69ea03e522e667 (diff)
downloadpostrunner-ae2c2a9c3b78c90a9718107d2d95aeb1b360491a.zip
First work to support importing monitoring FIT files.
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2d93e12..b79fc8c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -80,6 +80,10 @@ def create_fit_activity(config)
ts = Time.parse(config[:t])
serial = config[:serial] || 12345890
a = Fit4Ruby::Activity.new({ :timestamp => ts })
+ a.new_file_id({ :manufacturer => 'garmin',
+ :time_created => ts,
+ :garmin_product => 'fr920xt',
+ :serial_number => serial })
a.total_timer_time = (config[:duration] || 10) * 60
a.new_user_profile({ :timestamp => ts,
:age => 33, :height => 1.78, :weight => 73.0,