Sha256: 581792b9b6171b2269282200bfc0828345d6d0e607b59c3a5bf771ef71df929d

Contents?: true

Size: 734 Bytes

Versions: 6

Compression:

Stored size: 734 Bytes

Contents

begin
  gem 'rspec', '>=1.1.12'
  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

6 entries across 6 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.0.1 tasks/spec.rb
snusnu-dm-accepts_nested_attributes-0.0.2 tasks/spec.rb
snusnu-dm-accepts_nested_attributes-0.0.3 tasks/spec.rb
snusnu-dm-accepts_nested_attributes-0.0.4 tasks/spec.rb
snusnu-dm-accepts_nested_attributes-0.0.5 tasks/spec.rb
snusnu-dm-accepts_nested_attributes-0.0.6 tasks/spec.rb