Rakefile in sculd-0.0.3 vs Rakefile in sculd-0.1.0

- old
+ new

@@ -23,21 +23,39 @@ gem.authors = ["ippei94da"] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new -require 'rspec/core' -require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = FileList['spec/**/*_spec.rb'] -end +#require 'rspec/core' +#require 'rspec/core/rake_task' +#RSpec::Core::RakeTask.new(:spec) do |spec| +# spec.pattern = FileList['spec/**/*_spec.rb'] +#end +# +#RSpec::Core::RakeTask.new(:rcov) do |spec| +# spec.pattern = 'spec/**/*_spec.rb' +# spec.rcov = true +#end +# +#task :default => :spec -RSpec::Core::RakeTask.new(:rcov) do |spec| - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true +require 'rake/testtask' +Rake::TestTask.new(:test) do |test| + test.libs << 'lib' << 'test' + test.pattern = 'test/**/test_*.rb' + test.verbose = true end -task :default => :spec +#require 'rcov/rcovtask' +#Rcov::RcovTask.new do |test| +# test.libs << 'test' +# test.pattern = 'test/**/test_*.rb' +# test.verbose = true +# test.rcov_opts << '--exclude "gems/*"' +#end + +task :default => :test + require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""