File: warnings.rake

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
# This task is intended to be the same as check:specs but with verbose warnings
# output set by calling t.ruby_opts << "-W2"
namespace :check do
  Rake::TestTask.new(:warnings) do |t|
    t.libs << "lib"
    t.ruby_opts << "-r./spec/spec_helper"
    t.ruby_opts << "-W2"
    t.warning = !!$VERBOSE
    t.pattern = FileList['spec/**/*_spec.rb']
  end
end