Sha256: edec7c72b105a62623e5149311a3f56ba1a4478d42251adc653879beafe93ad1

Contents?: true

Size: 727 Bytes

Versions: 3

Compression:

Stored size: 727 Bytes

Contents

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", "erblint", "app/views/**/*.erb")
end

desc "Run the specs and acceptance tests"
task default: %w(spec spec:acceptance erb_lint)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clearance-2.9.2 Rakefile
clearance-2.9.1 Rakefile
clearance-2.9.0 Rakefile