forked from evendis/travelport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (27 loc) · 805 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "bundler/gem_tasks"
require 'rspec'
require 'rspec/core/rake_task'
desc "Run only unit test examples"
RSpec::Core::RakeTask.new(:'spec:unit') do |t|
t.pattern = 'spec/unit/**/*_spec.rb'
end
desc "Run only integration test examples"
RSpec::Core::RakeTask.new(:'spec:integration') do |t|
t.pattern = 'spec/integration/**/*_spec.rb'
end
desc "Run all test examples including integration tests"
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
end
task :default => :spec
require 'rdoc/task'
RDoc::Task.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "travelport"
rdoc.rdoc_files.include('README*', 'lib/**/*.rb')
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r travelport.rb"
end