[DRE-commits] [rake] 04/06: skip test for removed behavior
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon Feb 29 20:05:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository rake.
commit 275fb0a98b88cbf6f2b0c3440eb8a7e985cbea45
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Feb 29 17:00:40 2016 -0300
skip test for removed behavior
---
debian/patches/skip-rake-libdir.patch | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/debian/patches/skip-rake-libdir.patch b/debian/patches/skip-rake-libdir.patch
index 838f73b..8dec54d 100644
--- a/debian/patches/skip-rake-libdir.patch
+++ b/debian/patches/skip-rake-libdir.patch
@@ -19,3 +19,26 @@ Last-Update: 2016-02-29
end
def rake_lib_dir # :nodoc:
+--- a/test/test_rake_test_task.rb
++++ b/test/test_rake_test_task.rb
+@@ -82,20 +82,6 @@ class TestRakeTestTask < Rake::TestCase
+ assert_equal '-e "ARGV.each{|f| require f}"', test_task.run_code
+ end
+
+- def test_run_code_rake
+- spec = Gem::Specification.new 'rake', 0
+- spec.loaded_from = File.join Gem::Specification.dirs.last, 'rake-0.gemspec'
+- rake, Gem.loaded_specs['rake'] = Gem.loaded_specs['rake'], spec
+-
+- test_task = Rake::TestTask.new do |t|
+- t.loader = :rake
+- end
+-
+- assert_match(/\A-I".*?" ".*?"\Z/, test_task.run_code)
+- ensure
+- Gem.loaded_specs['rake'] = rake
+- end
+-
+ def test_run_code_rake_default_gem
+ skip 'this ruby does not have default gems' unless
+ Gem::Specification.method_defined? :default_specifications_dir
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rake.git
More information about the Pkg-ruby-extras-commits
mailing list