Sha256: 76b7144a2971d5a749fc1203cb1beb95d568228957a2d1af625712614a0c8f34

Contents?: true

Size: 765 Bytes

Versions: 10

Compression:

Stored size: 765 Bytes

Contents

require "rubygems"
require "bundler/setup"
require "bundler/gem_tasks"

require "rake"
require "rspec/core/rake_task"

namespace :dummy do
  require_relative "spec/dummy/application"
  Dummy::Application.load_tasks
end

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

10 entries across 10 versions & 1 rubygems

Version Path
clearance-2.8.0 Rakefile
clearance-2.7.2 Rakefile
clearance-2.7.0 Rakefile
clearance-2.6.2 Rakefile
clearance-2.6.1 Rakefile
clearance-2.6.0 Rakefile
clearance-2.5.0 Rakefile
clearance-2.4.0 Rakefile
clearance-2.3.1 Rakefile
clearance-2.3.0 Rakefile