[DRE-commits] [ruby-enumerize] 02/07: use the rake method to run the tests, mimicking upstream Rakefile

Cédric Boutillier boutil at moszumanska.debian.org
Thu Apr 23 14:35:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-enumerize.

commit 5c39cb4dfc0a1d69f9b0a7fb1e88cf7ea4777d70
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Apr 23 10:29:53 2015 +0200

    use the rake method to run the tests, mimicking upstream Rakefile
---
 debian/ruby-test-files.yaml | 20 --------------------
 debian/ruby-tests.rake      | 17 +++++++++++++++++
 2 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 6879ae7..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
----
-- test/activerecord_test.rb
-- test/attribute_map_test.rb
-- test/attribute_test.rb
-- test/base_test.rb
-- test/formtastic_test.rb
-- test/module_attributes_test.rb
-- test/mongo_mapper_test.rb
-- test/mongoid_test.rb
-- test/multiple_test.rb
-- test/predicates_test.rb
-- test/rails_admin_test.rb
-- test/rspec_matcher_test.rb
-- test/rspec_spec.rb
-- test/set_test.rb
-- test/simple_form_test.rb
-- test/support/mock_controller.rb
-- test/support/view_test_helper.rb
-- test/test_helper.rb
-- test/value_test.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..fa319b3
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,17 @@
+
+require 'rake/testtask'
+require 'rspec/core/rake_task'
+
+Rake::TestTask.new do |t|
+  t.libs << 'test'
+  t.test_files = FileList.new('test/*_test.rb') do |fl|
+    fl.exclude(/formtastic|simple_form/)
+  end
+  t.verbose = true
+end
+
+RSpec::Core::RakeTask.new('default') do |t|
+  t.pattern = 'test/rspec_spec.rb'
+end
+
+task :default => :test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-enumerize.git



More information about the Pkg-ruby-extras-commits mailing list