summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-31 21:34:24 +0100
committerChris Schlaeger <chris@linux.com>2015-10-31 21:34:24 +0100
commitfde5c1c0bb7187f6a39a86f0a394d2f196f3e670 (patch)
tree36ee6dbd975f56544db5de8836a4276a8e8a650c /spec
parentaceaa003792f4fe1c2e9c7590d106be875c875de (diff)
downloadpostrunner-fde5c1c0bb7187f6a39a86f0a394d2f196f3e670.zip
New: Show event log in activity view.
Diffstat (limited to 'spec')
-rw-r--r--spec/PostRunner_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb
index 59c5d0e..f4dd33b 100644
--- a/spec/PostRunner_spec.rb
+++ b/spec/PostRunner_spec.rb
@@ -131,6 +131,14 @@ describe PostRunner::Main do
list.index('Cycling').should be_a(Fixnum)
end
+ it 'should list the events of an activity' do
+ postrunner(%w( events :1 ))
+ end
+
+ it 'should list the data sources of an activity' do
+ postrunner(%w( sources :1 ))
+ end
+
it 'should fail when setting bad activity type' do
lambda { postrunner(%w( set type foobar :1)) }.should raise_error Fit4Ruby::Error
end