-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (21 loc) · 780 Bytes
/
Rakefile
File metadata and controls
26 lines (21 loc) · 780 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
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
task :default do
system("rake -T")
end
task :specs => [:spec]
desc "Run all rspec tests"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--color']
# ignores fixtures directory.
t.pattern = 'spec/**/*_spec.rb'
end
task :specs_html => [:spec_html]
desc "Run all rspec tests with html output"
fpath = "#{ENV['RAZOR_RSPEC_WEBPATH']||'.'}/razor_tests.html"
RSpec::Core::RakeTask.new(:spec_html) do |t|
t.rspec_opts = ['--color', '--format h', "--out #{fpath}"]
# ignores fixtures directory.
t.pattern = 'spec/**/*_spec.rb'
end