summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-09-12 21:54:53 +0200
committerChris Schlaeger <chris@linux.com>2015-09-12 21:54:53 +0200
commitb5267c1a8fda1784e5a4892ee227f5e4fb57e804 (patch)
treebfd1dfea01003f6b8347119f026d31c813b10fda /spec/spec_helper.rb
parent21eddca873d2912e9f5f8ab88c681ce55cbe0c6f (diff)
downloadpostrunner-b5267c1a8fda1784e5a4892ee227f5e4fb57e804.zip
Adding plumbing to have PEROBS as additional dependency.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 7c15dbb..691f097 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -10,6 +10,13 @@
# published by the Free Software Foundation.
#
+# Some dependencies may not be installed as Ruby Gems but as local sources.
+# Add them and the postrunner dir to the LOAD_PATH.
+%w( postrunner fit4ruby perobs ).each do |lib_dir|
+ $:.unshift(File.join(File.dirname(__FILE__), '..', '..', lib_dir, 'lib'))
+end
+puts $:
+
def create_fit_file(name, date, duration_minutes = 30)
Fit4Ruby.write(name, create_fit_activity(date, duration_minutes))
end