diff options
author | Chris Schlaeger <chris@linux.com> | 2020-07-26 14:17:00 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2020-07-26 14:17:00 +0200 |
commit | 6ab4a03f9249a8b903d2e8c42a3f94bd614ff5c7 (patch) | |
tree | c345cc8bc95fe45885f683fb189ab84ec38971e0 /spec | |
parent | e11e292e9c72e5295b6b9918aaeab62310ef5904 (diff) | |
download | postrunner-6ab4a03f9249a8b903d2e8c42a3f94bd614ff5c7.zip |
New: Improved handling of unknown devices and unknown FIT elements
Diffstat (limited to 'spec')
-rw-r--r-- | spec/FitFileStore_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/FitFileStore_spec.rb b/spec/FitFileStore_spec.rb index 91797aa..6206a4a 100644 --- a/spec/FitFileStore_spec.rb +++ b/spec/FitFileStore_spec.rb @@ -3,7 +3,7 @@ # # = PostRunner_spec.rb -- PostRunner - Manage the data from your Garmin sport devices. # -# Copyright (c) 2014, 2015, 2016 by Chris Schlaeger <cs@taskjuggler.org> +# Copyright (c) 2014, 2015, 2016, 2020 by Chris Schlaeger <cs@taskjuggler.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as @@ -51,7 +51,7 @@ describe PostRunner::FitFileStore do expect(@activities[-1]).not_to be_nil expect(@ffs.devices.length).to eq(1) - expect(@ffs.devices.include?('garmin-fenix3-123456790')).to be true + expect(@ffs.devices.include?('1-2050-123456790')).to be true expect(@ffs.activities.length).to eq(1) expect(@ffs.ref_by_activity(@activities[0])).to eq(1) end @@ -60,7 +60,7 @@ describe PostRunner::FitFileStore do expect(@ffs.add_fit_file(@fit_file_names[0])).to be_nil expect(@ffs.devices.length).to eq(1) - expect(@ffs.devices.include?('garmin-fenix3-123456790')).to be true + expect(@ffs.devices.include?('1-2050-123456790')).to be true expect(@ffs.activities.length).to eq(1) end @@ -69,8 +69,8 @@ describe PostRunner::FitFileStore do expect(@activities[-1]).not_to be_nil expect(@ffs.devices.length).to eq(2) - expect(@ffs.devices.include?('garmin-fenix3-123456790')).to be true - expect(@ffs.devices.include?('garmin-fenix3-123456791')).to be true + expect(@ffs.devices.include?('1-2050-123456790')).to be true + expect(@ffs.devices.include?('1-2050-123456791')).to be true expect(@ffs.activities.length).to eq(2) expect(@ffs.ref_by_activity(@activities[1])).to eq(1) end @@ -80,8 +80,8 @@ describe PostRunner::FitFileStore do expect(@activities[-1]).not_to be_nil expect(@ffs.devices.length).to eq(2) - expect(@ffs.devices.include?('garmin-fenix3-123456790')).to be true - expect(@ffs.devices.include?('garmin-fenix3-123456791')).to be true + expect(@ffs.devices.include?('1-2050-123456790')).to be true + expect(@ffs.devices.include?('1-2050-123456791')).to be true expect(@ffs.activities.length).to eq(3) expect(@ffs.ref_by_activity(@activities[2])).to eq(1) end |