Rakefile in clearance-2.2.1 vs Rakefile in clearance-2.3.0
- old
+ new
@@ -20,7 +20,12 @@
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", "erblint", "app/views/**/*.erb")
+end
+
desc "Run the specs and acceptance tests"
-task default: %w(spec spec:acceptance)
+task default: %w(spec spec:acceptance erb_lint)