Sha256: 9a2f82a369d65f229184186fe685aa5dc111199941c2bf55c0d2be27a1caf21a

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

if defined? RSpec
  namespace :spec do
    begin
      require 'cane/rake_task'

      desc "Run cane to check quality metrics"
      Cane::RakeTask.new(:quality) do |cane|
        cane.canefile = ".cane"
        cane.add_threshold 'coverage/covered_percent', :>=, 100
      end
    rescue LoadError
      warn "cane not available, quality task not provided."
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-prg-0.1.1 lib/tasks/quality.rake
rails-prg-0.1.0 lib/tasks/quality.rake