From ae2c2a9c3b78c90a9718107d2d95aeb1b360491a Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Thu, 24 Mar 2016 20:21:20 +0100 Subject: First work to support importing monitoring FIT files. --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') 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, -- cgit v1.2.3