[DRE-commits] [ruby-rabl-rails] 04/07: d/control: Add minitest dependency (and fix test call)
Sebastien Badia
sbadia-guest at moszumanska.debian.org
Thu May 1 15:24:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
sbadia-guest pushed a commit to branch master
in repository ruby-rabl-rails.
commit 20f41ba7894ab5825a14c8292657f499f356042d
Author: Sebastien Badia <seb at sebian.fr>
Date: Thu May 1 17:18:04 2014 +0200
d/control: Add minitest dependency (and fix test call)
---
debian/control | 2 +-
debian/patches/001_fix-minitest-autoload.patch | 24 ++++++++++++++++++++++++
debian/ruby-tests.rake | 5 +++--
3 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index 376df59..f988b4d 100644
--- a/debian/control
+++ b/debian/control
@@ -8,10 +8,10 @@ Build-Depends: debhelper (>= 7.0.50~),
ruby-actionpack,
ruby-activesupport,
ruby-libxml,
+ ruby-minitest,
ruby-multi-json,
ruby-nokogiri,
ruby-plist,
- ruby-minitest,
ruby-railties,
ruby-rspec-mocks
Standards-Version: 3.9.5
diff --git a/debian/patches/001_fix-minitest-autoload.patch b/debian/patches/001_fix-minitest-autoload.patch
new file mode 100644
index 0000000..8b9cd14
--- /dev/null
+++ b/debian/patches/001_fix-minitest-autoload.patch
@@ -0,0 +1,24 @@
+Description: Fix minitest autorun declaration
+ MiniTest::Unit.autorun is now Minitest.autorun
+Author: Sebastien Badia <seb at sebian.fr>
+Forwarded: no
+Last-Update: 2014-05-01
+
+--- ruby-rabl-rails-0.3.4.orig/test/test_helper.rb
++++ ruby-rabl-rails-0.3.4/test/test_helper.rb
+@@ -3,7 +3,7 @@ $:.unshift File.expand_path('../../lib',
+
+ require 'rspec/mocks'
+ require 'minitest/unit'
+-MiniTest::Unit.autorun
++Minitest.autorun
+
+ require 'active_support/test_case'
+
+@@ -65,4 +65,4 @@ class User
+ @name = name
+ @sex = sex
+ end
+-end
+\ No newline at end of file
++end
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 74aa2ad..4e4f698 100755
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,10 +1,11 @@
require 'rake/testtask'
+require 'minitest/autorun'
+
Rake::TestTask.new(:test) do |t|
-# t.libs << 'lib'
+ t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
-
task :default => :test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rabl-rails.git
More information about the Pkg-ruby-extras-commits
mailing list