summaryrefslogtreecommitdiff
path: root/Rakefile
blob: a2728e463b5bf17e8829d794d2e68b9f43183867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
task :test => :spec