Skip to content

Commit

Permalink
fix the :test rake task
Browse files Browse the repository at this point in the history
which I broke when I yanked Hoe
  • Loading branch information
flavorjones committed Aug 28, 2020
1 parent f381722 commit 7f3a047
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "rubygems"

require "hoe/markdown"
Hoe::Markdown::Standalone.new("loofah").define_markdown_tasks

Expand All @@ -9,6 +7,13 @@ Concourse.new("loofah", fly_target: "ci") do |c|
c.add_pipeline "loofah-pr", "loofah-pr.yml"
end

require "rake/testtask"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = Dir["test/**/*.rb"]
end
task :default => :test

desc "generate safelists from W3C specifications"
task :generate_safelists do
load "tasks/generate-safelists"
Expand All @@ -27,5 +32,3 @@ task :debug_manifest do
spec = eval(File.read("loofah.gemspec"))
puts spec.files
end

task :default => :test
3 changes: 1 addition & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "rubygems"
require "minitest/autorun"
require "minitest/unit"
require "minitest/spec"
require "minitest/autorun"
require "rr"

require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "loofah"))
Expand Down

0 comments on commit 7f3a047

Please sign in to comment.