[DRE-commits] [SCM] ruby-diff-lcs.git branch, master, updated. upstream/1.1.3-27-g7ceffbf
Cédric Boutillier
boutil at debian.org
Tue May 7 15:05:49 UTC 2013
The following commit has been merged in the master branch:
commit f519f9ccd1c8cbd55f7902efb1c363bcf082cb74
Author: Cédric Boutillier <boutil at debian.org>
Date: Tue May 7 16:24:15 2013 +0200
use ruby-tests.rake method to run the specs
diff --git a/debian/control b/debian/control
index b09ac8e..1cb15e8 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Lucas Nussbaum <lucas at debian.org>, Cédric Boutillier <boutil at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec, rake
Standards-Version: 3.9.4
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-diff-lcs.git
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-diff-lcs.git;a=summary
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..b0bf936
--- /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 c4d053c..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-$: << 'lib' << 'spec' << '.'
-require 'rspec'
-
-# upstream uses shared_examples, which is no longer valid, apparently.
-module RSpec
- module Core
- module SharedExampleGroup
- alias :shared_examples :shared_examples_for
- end
- end
-end
-
-Dir['{spec,test}/**/*_spec.rb'].each { |f| require f }
--
ruby-diff-lcs.git
More information about the Pkg-ruby-extras-commits
mailing list