spec/FitFile_spec.rb in fit4ruby-0.0.6 vs spec/FitFile_spec.rb in fit4ruby-0.0.7

- old
+ new

@@ -24,10 +24,11 @@ a.new_event({ :event => 'timer', :event_type => 'start_time' }) a.new_device_info({ :device_index => 0, :manufacturer => 'development' }) a.new_device_info({ :device_index => 1, :manufacturer => 'development', :battery_status => 'ok' }) ts = Time.now + laps = 0 0.upto(a.total_timer_time / 60) do |mins| ts += 60 a.new_record({ :timestamp => ts, :position_lat => 51.5512 - mins * 0.0008, @@ -44,10 +45,11 @@ :fractional_cadence => (mins % 2) / 2.0 }) if mins > 0 && mins % 5 == 0 a.new_lap({ :timestamp => ts, :sport => 'running', - :total_cycles => 195 }) + :message_index => laps, :total_cycles => 195 }) + laps += 1 end end a.new_session({ :timestamp => ts, :sport => 'running' }) a.new_event({ :timestamp => ts, :event => 'recovery_time', :event_type => 'marker',