-
-
Notifications
You must be signed in to change notification settings - Fork 466
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (21 loc) · 728 Bytes
/
Rakefile
File metadata and controls
28 lines (21 loc) · 728 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
require "bundler/setup"
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
desc "Run specs other than spec/acceptance"
RSpec::Core::RakeTask.new("spec") do |task|
task.exclude_pattern = "spec/acceptance/**/*_spec.rb"
task.verbose = false
end
desc "Run acceptance specs in spec/acceptance"
RSpec::Core::RakeTask.new("spec:acceptance") do |task|
task.pattern = "spec/acceptance/**/*_spec.rb"
task.verbose = false
end
desc "Lint ERB templates"
task :erb_lint do
sh("bundle", "exec", "erb_lint", "app/views/**/*.erb")
end
desc "Run the specs and acceptance tests"
task default: %w[spec spec:acceptance erb_lint]