forked from mocoso/code-beautifier.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (33 loc) · 749 Bytes
/
Rakefile
File metadata and controls
37 lines (33 loc) · 749 Bytes
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
34
35
36
37
# RSpec support
begin
require 'rspec'
rescue LoadError
require 'rubygems'
require 'rspec'
end
begin
require "rspec/core/rake_task"
rescue LoadError
puts <<-EOS
To use rspec for testing you must install rspec gem:
gem install rspec
EOS
exit(0)
end
spec_common = Proc.new do |spec|
spec.pattern = 'Support/spec/**/*/*_spec.rb'
spec.rspec_opts = ['--backtrace']
end
task :default => :spec
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec_common.call(spec)
end
namespace :spec do
desc "Run all specs in spec directory with RCov"
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec_common.call(spec)
spec.rcov = true
spec.rcov_opts = ['-x', 'Support/spec/', '-T']
end
end