[DRE-commits] [ruby-multi-json] 03/05: use the code from upstream Rakefile to run the tests
Cédric Boutillier
boutil at moszumanska.debian.org
Wed Oct 8 20:50:34 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-multi-json.
commit a7e1324dd1e7f78bddfaa9d207ee26f7787925d3
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Oct 8 22:39:52 2014 +0200
use the code from upstream Rakefile to run the tests
---
debian/ruby-tests.rake | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 7d25e5e..48f2398 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,4 +1,21 @@
-ENV['CI'] = 'true'
+# copied from upstream Rakefile 2014/10/08
+
require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec)
+RSpec::Core::RakeTask.new(:base_spec) do |task|
+ task.pattern = 'spec/multi_json_spec.rb'
+end
+
+namespace :adapters do
+ Dir['spec/*_adapter_spec.rb'].each do |adapter_spec|
+ adapter_name = adapter_spec[/(\w+)_adapter_spec/, 1]
+ desc "Run #{adapter_name} adapter specs"
+ RSpec::Core::RakeTask.new(adapter_name) do |task|
+ task.pattern = adapter_spec
+ end
+ end
+end
+
+task :spec => %w[base_spec adapters:oj adapters:yajl adapters:json_gem adapters:json_pure adapters:ok_json adapters:gson adapters:jr_jackson adapters:nsjsonserialization]
+
task :default => :spec
+task :test => :spec
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-multi-json.git
More information about the Pkg-ruby-extras-commits
mailing list