[DRE-commits] [SCM] ruby-diff-lcs.git branch, master, updated. upstream/1.1.2-12-g06e721e

Lucas Nussbaum lucas at lucas-nussbaum.net
Sun Oct 9 10:11:28 UTC 2011


The following commit has been merged in the master branch:
commit 4e5cd34d9cab1bf298f32ff2ed97cb7896f515d7
Author: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date:   Sun Oct 9 11:52:54 2011 +0200

    switch to rspec to run tests.

diff --git a/debian/control b/debian/control
index c06893f..4fb5e2b 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Lucas Nussbaum <lucas at debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.1)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.1), ruby-rspec
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-diff-lcs.git
 Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-diff-lcs.git;a=summary
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 0431f56..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
---- 
-- tests/00test.rb
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..c4d053c
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,13 @@
+$: << '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