forked from cgriego/active_attr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (21 loc) · 667 Bytes
/
Rakefile
File metadata and controls
26 lines (21 loc) · 667 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 "bundler/setup"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
task :default => :spec
task :spec => %w(spec:units spec:functionals)
namespace :spec do
desc "Run RSpec specs with code coverate analysis"
RSpec::Core::RakeTask.new(:cov) do |spec|
spec.rspec_opts = "--format nested --format SpecCoverage"
end
desc "Run RSpec unit specs"
RSpec::Core::RakeTask.new(:units) do |spec|
spec.pattern = "spec/unit/**/*_spec.rb"
spec.ruby_opts = "-w"
end
desc "Run RSpec functional specs"
RSpec::Core::RakeTask.new(:functionals) do |spec|
spec.pattern = "spec/functional/**/*_spec.rb"
spec.ruby_opts = "-w"
end
end