Rakefile in ecm_cms_navigation-0.0.6 vs Rakefile in ecm_cms_navigation-0.0.8
- old
+ new
@@ -6,11 +6,12 @@
end
begin
require 'rdoc/task'
rescue LoadError
require 'rdoc/rdoc'
- require 'rake/rdoctask'
+ # require 'rake/rdoctask'
+ require 'rdoc/task'
RDoc::Task = Rake::RDocTask
end
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
@@ -23,16 +24,11 @@
Bundler::GemHelper.install_tasks
-require 'rake/testtask'
-
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = false
+# Travis CI
+task :default => [:spec]
+desc 'run Rspec specs'
+task :spec do
+ sh 'cd ./spec/dummy && rspec && cd ../../'
end
-
-
-task :default => :test