summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
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