diff options
author | Chris Schlaeger <chris@linux.com> | 2016-01-03 21:24:36 +0100 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2016-01-03 21:24:36 +0100 |
commit | 998bc46bdf995963a237fccf51e75317d08cd608 (patch) | |
tree | fe57a6ab39f0a2dbad209ceb5e6ec95324a9a720 /spec/ActivitySummary_spec.rb | |
parent | 54719ca934e1b01dca10344bd3b392c686528a89 (diff) | |
download | postrunner-998bc46bdf995963a237fccf51e75317d08cd608.zip |
Big refactoring to switch to PEROBS database.
Diffstat (limited to 'spec/ActivitySummary_spec.rb')
-rw-r--r-- | spec/ActivitySummary_spec.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/spec/ActivitySummary_spec.rb b/spec/ActivitySummary_spec.rb index b3d77b0..f949a8d 100644 --- a/spec/ActivitySummary_spec.rb +++ b/spec/ActivitySummary_spec.rb @@ -18,16 +18,27 @@ end describe PostRunner::ActivitySummary do + before(:all) do + capture_stdio + create_working_dirs + create_fit_file_store + end + before(:each) do - fa = create_fit_activity('2014-08-26-19:00', 30) - a = Activity.new(fa, 'running') - @as = PostRunner::ActivitySummary.new(a, :metric, + acfg = { :t => '2014-08-26T19:00', :duration => 30, :serial => 123456790 } + fn = create_fit_activity_file(@fit_dir, acfg) + fa = @ffs.add_fit_file(fn) + @as = PostRunner::ActivitySummary.new(fa, :metric, { :name => 'test', :type => 'Running', :sub_type => 'Street' }) end + after(:all) do + cleanup + end + it 'should create a metric summary' do - puts @as.to_s #TODO: Fix aggregation first + @as.to_s #TODO: Fix aggregation first end end |