diff options
author | Chris Schlaeger <chris@linux.com> | 2015-04-26 20:58:57 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2015-04-26 20:58:57 +0200 |
commit | 7494e2ec33a484c0bb8c9d8ca7b17cea8ed9c90c (patch) | |
tree | ff2e717fe63de0a44de5fc9f7119284de4e9f283 /spec/ActivitySummary_spec.rb | |
parent | 9e61a603ff582eae6140737727f7624751d668a8 (diff) | |
download | postrunner-7494e2ec33a484c0bb8c9d8ca7b17cea8ed9c90c.zip |
Use Activity.sport to select pace or speed.
Diffstat (limited to 'spec/ActivitySummary_spec.rb')
-rw-r--r-- | spec/ActivitySummary_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/ActivitySummary_spec.rb b/spec/ActivitySummary_spec.rb index b09f6d3..08e2b15 100644 --- a/spec/ActivitySummary_spec.rb +++ b/spec/ActivitySummary_spec.rb @@ -13,11 +13,15 @@ require 'postrunner/ActivitySummary' require 'spec_helper' +class Activity < Struct.new(:fit_activity, :sport) +end + describe PostRunner::ActivitySummary do before(:each) do - @as = PostRunner::ActivitySummary.new( - create_fit_activity('2014-08-26-19:00', 30), :metric, + fa = create_fit_activity('2014-08-26-19:00', 30) + a = Activity.new(fa, 'running') + @as = PostRunner::ActivitySummary.new(a, :metric, { :name => 'test', :type => 'Running', :sub_type => 'Street' }) end |