lib/gram/gem/templates/Rakefile.tt in gram-0.1.0 vs lib/gram/gem/templates/Rakefile.tt in gram-0.2.0
- old
+ new
@@ -1,11 +1,15 @@
require 'bundler'
Bundler::GemHelper.install_tasks
-require 'rspec/core/rake_task'
+require 'rake/testtask'
desc "Run <%= underscored %> specs"
-RSpec::Core::RakeTask.new
+Rake::TestTask.new do |t|
+ t.libs << "spec"
+ t.test_files = FileList['spec/**/*_spec.rb']
+ t.verbose = true
+end
require 'yard'
YARD::Rake::YardocTask.new(:docs) do |t|
t.files = ['lib/**/*.rb']
t.options = ['-m', 'markdown', '--no-private', '-r', 'Readme.md', '--title', '<%= camelized %> documentation']
@@ -42,6 +46,6 @@
desc "Generate and open class diagram (needs Graphviz installed)"
task :graph do |t|
`bundle exec yard graph -d --full --no-private | dot -Tpng -o graph.png && open graph.png`
end
-task :default => [:spec]
+task :default => [:test]