Sha256: d2f8726e1b59a31f69c435fec15411b6c227878a14e17ddcedc7cbea126ab579

Contents?: true

Size: 729 Bytes

Versions: 21

Compression:

Stored size: 729 Bytes

Contents

begin
  gem 'rspec', '~>1.2'
  require 'spec'
  require 'spec/rake/spectask'

  task :default => [ :spec ]

  desc 'Run specifications'
  Spec::Rake::SpecTask.new(:spec) do |t|
    t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
    t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s).map { |f| f.to_s }

    begin
      gem 'rcov', '~>0.8'
      t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
      t.rcov_opts << '--exclude' << 'spec'
      t.rcov_opts << '--text-summary'
      t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
    rescue LoadError
      # rcov not installed
    end
  end
rescue LoadError
  # rspec not installed
end

Version data entries

21 entries across 21 versions & 21 rubygems

Version Path
dm-aggregates-0.9.11 tasks/spec.rb
dm-adjust-0.9.11 tasks/spec.rb
dm-ar-finders-0.9.11 tasks/spec.rb
dm-cli-0.9.11 tasks/spec.rb
dm-constraints-0.9.11 tasks/spec.rb
dm-is-list-0.9.11 tasks/spec.rb
dm-ferret-adapter-0.9.11 tasks/spec.rb
dm-is-nested_set-0.9.11 tasks/spec.rb
dm-is-remixable-0.9.11 tasks/spec.rb
dm-is-searchable-0.9.11 tasks/spec.rb
dm-is-state_machine-0.9.11 tasks/spec.rb
dm-is-tree-0.9.11 tasks/spec.rb
dm-is-versioned-0.9.11 tasks/spec.rb
dm-migrations-0.9.11 tasks/spec.rb
dm-observer-0.9.11 tasks/spec.rb
dm-rest-adapter-0.9.11 tasks/spec.rb
dm-serializer-0.9.11 tasks/spec.rb
dm-sweatshop-0.9.11 tasks/spec.rb
dm-timestamps-0.9.11 tasks/spec.rb
dm-types-0.9.11 tasks/spec.rb