Sha256: f78af6383e8cce906a05f3dd6a3142f7dd0abe5c4a43d7fe821575afa7f992a6

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

require 'html-proofer'

namespace :wax do
  desc 'run htmlproofer, rspec if .rspec file exists'
  task :test do
    opts = {
      check_external_hash: true,
      allow_hash_href: true,
      check_html: true,
      disable_external: true,
      empty_alt_ignore: true,
      only_4xx: true,
      verbose: true
    }
    HTMLProofer.check_directory('./_site', opts).run
    system('bundle exec rspec') if File.exist?('.rspec')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wax_tasks-1.0.0.pre.beta lib/tasks/test.rake
wax_tasks-0.3.2 lib/tasks/test.rake
wax_tasks-0.3.1 lib/tasks/test.rake
wax_tasks-0.3.0 lib/tasks/test.rake