mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 11:18:50 +01:00
15 lines
334 B
Ruby
15 lines
334 B
Ruby
require "html/proofer"
|
|
require 'rspec/core/rake_task'
|
|
|
|
desc "Run specs"
|
|
RSpec::Core::RakeTask.new do |t|
|
|
t.pattern = 'spec/**/*_spec.rb'
|
|
t.rspec_opts = ["--order", "rand", "--color"]
|
|
end
|
|
|
|
task :test do
|
|
sh "bundle exec jekyll build --trace"
|
|
HTML::Proofer.new("./_site", :check_html => true).run
|
|
Rake::Task["spec"].invoke
|
|
end
|