summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-15 21:23:03 +0200
committerChris Schlaeger <chris@linux.com>2014-08-15 21:23:03 +0200
commita7a6efc96a5656dee01885e6b51e3c42ede63022 (patch)
tree4aff0246a2b81dd922785bf6413fd0e80f733068 /Rakefile
parente3f780b87b99bcabc0017c8be86375c667489f02 (diff)
downloadpostrunner-a7a6efc96a5656dee01885e6b51e3c42ede63022.zip
Fix spec tests.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 7053a89..a2728e4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,16 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
+# Add the include path for the fit4ruby library. We assume it is located in
+# the same directory as the postrunner directory.
+fit4ruby = File.realpath(File.join(File.dirname(__FILE__), '..',
+ 'fit4ruby', 'lib'))
+if ENV['RUBYLIB']
+ ENV['RUBYLIB'] += ":#{fit4ruby}"
+else
+ ENV['RUBYLIB'] = fit4ruby
+end
+
RSpec::Core::RakeTask.new
task :default => :spec