summaryrefslogtreecommitdiff
path: root/spec/ActivitySummary_spec.rb
blob: b09f6d3c0e4c84db4d17e23fdc480f292e70de07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = PostRunner_spec.rb -- PostRunner - Manage the data from your Garmin sport devices.
#
# Copyright (c) 2014 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
# published by the Free Software Foundation.
#

require 'postrunner/ActivitySummary'
require 'spec_helper'

describe PostRunner::ActivitySummary do

  before(:each) do
    @as = PostRunner::ActivitySummary.new(
      create_fit_activity('2014-08-26-19:00', 30), :metric,
                          { :name => 'test', :type => 'Running',
                            :sub_type => 'Street' })
  end

  it 'should create a metric summary' do
    puts @as.to_s #TODO: Fix aggregation first
  end

end