[DRE-commits] [ruby-cucumber-rails] 05/08: patch rubygems requires, use ruby-tests.rake
Antonio Terceiro
terceiro at moszumanska.debian.org
Thu Oct 29 20:05:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-cucumber-rails.
commit 52d5a68bcbbdfdd5c0e092396158a6f53c15529b
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Apr 1 15:15:47 2013 +0530
patch rubygems requires, use ruby-tests.rake
---
debian/patches/remove-require-rubygems.patch | 11 +++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rake | 7 +++++++
debian/ruby-tests.rb | 13 -------------
4 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/debian/patches/remove-require-rubygems.patch b/debian/patches/remove-require-rubygems.patch
new file mode 100644
index 0000000..63d4d84
--- /dev/null
+++ b/debian/patches/remove-require-rubygems.patch
@@ -0,0 +1,11 @@
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,4 +1,7 @@
+-require 'rubygems'
++# we'll add the dependencies in debian/control
++# require 'rubygems'
+ require 'rspec/autorun'
++require 'rspec/rails'
++require 'activemodel'
+
+ require 'ammeter/init'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..91ffc24
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove-require-rubygems.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..89a753d
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = './spec/**/*_spec.rb'
+end
+
+task :default => :spec
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index eac5ce6..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-cucumber-rails.git
More information about the Pkg-ruby-extras-commits
mailing list