debian/0000755000000000000000000000000012161501470007163 5ustar debian/rules0000755000000000000000000000140012161421270010235 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby # installing a manpage created from a debian/specrb.1.pod file override_dh_installman: mkdir man pod2man --center "" --release "" --name SPECRB --utf8 debian/specrb.1.pod man/specrb.1 dh_installman # making sure that the created man/ dir is removed when cleaning override_dh_auto_clean: rm -rf man dh_auto_clean debian/ruby-test-spec.examples0000644000000000000000000000001311772430430013607 0ustar examples/* debian/watch0000644000000000000000000000014711772430430010222 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/test-spec .*/test-spec-(.*).tar.gz debian/source/0000755000000000000000000000000011772430430010467 5ustar debian/source/format0000644000000000000000000000001411772430430011675 0ustar 3.0 (quilt) debian/ruby-test-files.yaml0000644000000000000000000000032211772430430013106 0ustar --- - test/test_testunit.rb - test/spec_dox.rb - test/spec_flexmock.rb - test/spec_nestedcontexts.rb - test/spec_new_style.rb - test/spec_should-output.rb - test/spec_testspec.rb - test/spec_testspec_order.rb debian/copyright0000644000000000000000000001171012161422364011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: test-spec Source: http://test-spec.rubyforge.org Files: * Copyright: Copyright 2006-2009 Christian Neukirchen License: GPL-2 or Ruby Files: test/spec_flexmock.rb Copyright: Copyright 2006 Jim Weirich License: Permission is granted for use, copying, modification, distribution, and distribution of modified versions of this work as long as the above copyright notice is included. Files: test/spec_mocha.rb Copyright: Copyright 2006 Revieworld Ltd License: GPL-2 or Ruby, and Expat Files: debian/* Copyright: 2011-2013 Cédric Boutillier License: GPL-2 or Ruby License: Ruby You can redistribute it and/or modify it under either the terms of the GPL version 2, or the conditions below: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: . a) distribute the binaries and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the author, so that they are not under these terms. . For the list of those files and their copying conditions, see the file LEGAL. . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000202112161421227010562 0ustar Source: ruby-test-spec Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-test-unit Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-test-spec.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-test-spec.git;a=summary Homepage: http://test-spec.rubyforge.org XS-Ruby-Versions: all Package: ruby-test-spec Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-test-unit Description: Ruby library providing behaviour driven development interface for Test::Unit The test/spec library layers an RSpec-inspired interface on top of Test::Unit, so you can mix test-driven and behavior-driven development. . test/spec is a clean-room implementation that maps most kinds of Test::Unit assertions to a `should'-like syntax. debian/ruby-test-spec.manpages0000644000000000000000000000001511772430430013566 0ustar man/specrb.1 debian/ruby-test-spec.docs0000644000000000000000000000000711772430430012724 0ustar README debian/patches/0000755000000000000000000000000012161421303010606 5ustar debian/patches/0020-remove_load_path_manipulations_in_tests.patch0000644000000000000000000000110011772430430022371 0ustar Description: remove $LOAD_PATH manipulations in tests This is not needed since test-runner is taking care of the update of $LOAD_PATH before running tests. Author: Cédric Boutillier Last-Update: 2011-09-20 --- a/test/spec_should-output.rb +++ b/test/spec_should-output.rb @@ -1,4 +1,3 @@ -$: << File.dirname(__FILE__) + '/../lib/' require 'test/spec' require 'test/spec/should-output' --- a/test/spec_testspec.rb +++ b/test/spec_testspec.rb @@ -1,4 +1,3 @@ -$: << File.dirname(__FILE__) + '/../lib/' require 'test/spec' $WARNING = "" debian/patches/series0000644000000000000000000000020512161420061012020 0ustar 0010-disable_invalid_test_exception.patch 0020-remove_load_path_manipulations_in_tests.patch 0030-fix_require_path_in_examples.patch debian/patches/0010-disable_invalid_test_exception.patch0000644000000000000000000000272712161421144020446 0ustar Description: disabled tests should not cause errors with test-unit gem The :invalid_test exception is used in the version of Test::Unit bundled with Ruby1.8 but is not catched in the newer version packaged in ruby-test-unit. A workaround in ruby-test-unit had been present for versions >= 2.4.8, but this broke again with ruby-test-unit 2.5.4. Author: Colin MacKenzie IV Origin: https://github.com/sinisterchipmunk/test-spec/commit/b93314b213460730125245e61e7caa5f01567dba Reviewed-by: Cédric Boutillier Bug: https://github.com/sinisterchipmunk/test-spec/issues/2 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713164 Last-Update: 2013-06-22 --- lib/test/spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/lib/test/spec.rb +++ b/lib/test/spec.rb @@ -354,7 +354,7 @@ # Don't let the default_test clutter up the results and don't # flunk if no tests given, either. - throw :invalid_test if name.to_s == "default_test" + # throw :invalid_test if name.to_s == "default_test" end def position @@ -534,6 +534,7 @@ class Test::Spec::Disabled < Test::Unit::Failure # :nodoc: def initialize(name) @name = name + @location = [] end def single_character_display @@ -547,6 +548,10 @@ def long_display @name + " is disabled" end + + def message + long_display + end end class Test::Spec::Empty < Test::Unit::Failure # :nodoc: debian/patches/0030-fix_require_path_in_examples.patch0000644000000000000000000000071311772430430020142 0ustar Description: change path in examples to use lib installed by the package Author: Cédric Boutillier Last-Update: 2011-09-21 --- a/examples/stack_spec.rb +++ b/examples/stack_spec.rb @@ -1,6 +1,6 @@ # Copied with minor code changes (should_xxx -> should.xxx) from RSpec. -require File.dirname(__FILE__) + '/../lib/test/spec' +require 'test/spec' require File.dirname(__FILE__) + "/stack" context "A stack (in general)" do debian/compat0000644000000000000000000000000211772430430010365 0ustar 7 debian/specrb.1.pod0000644000000000000000000000356611772430430011322 0ustar =encoding UTF-8 =head1 NAME specrb - standalone test runner for test/spec and Test::Unit test suites =head1 SYNOPSIS B [I] [I | -a ] [-- untouched arguments] =head1 DESCRIPTION The Ruby script B allows you to run tests written with test/spec from the command line. It can also be used for plain Test::Unit test suites. You can either specify the names of the test files you want to run, or let B find automatically all the tests in your project, by using the B<-a> switch (see TEST/SPEC OPTIONS below). You can also use various options on the command line to pass parameters to the Ruby interpreterm or to modify the behavior of test/spec and/or test/unit. =head1 RUBY OPTIONS =over =item B<-e>, B<--eval> LINE evaluate a LINE of code =item B<-d>, B<--debug> set debugging flags (set $DEBUG to true) =item B<-w>, B<--warn> turn warnings on for your script =item B<-I>, B<--include> PATH specify $LOAD_PATH (may be used more than once) =item B<-r>, B<--require> LIBRARY require the LIBRARY, before executing your script =back =head1 TEST/SPEC OPTIONS: =over =item B<-s>, B<--specdox> do AgileDox-like output =item B<--rdox> do AgileDox-like output with RDoc formatting =item B<-a>, B<--automatic> gather tests from ./test/, include ./lib/ =back =head1 TEST::UNIT OPTIONS: =over =item B<-n>, B<--name> NAME runs tests matching regexp NAME =item B<-t>, B<--testcase> TESTCASE runs tests in TestCases matching regexp TESTCASE =back =head1 COMMON OPTIONS: =over =item B<-h>, B<--help> show a message similar to this manpage =item B<--version> show version =back =head1 AUTHORS The test/spec library has been written by Christian Neukirchen . This manual page, inspired by the help message of B, has been written for the Debian Project by Cédric Boutillier (but may used by others). debian/changelog0000644000000000000000000000255712161423707011054 0ustar ruby-test-spec (0.10.0-3) unstable; urgency=medium * Set urgency to medium, as an RC bug is closed. * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + update email address + bump Standards-Version to 3.9.4 (no changes needed) * debian/copyright: + use DEP5 copyright-format/1.0 official URL for Format field + update my email and years * debian/patches/0100_remove_bundler_rubygems_stuff.patch: modify to use upstream patch, so that ruby-test-spec works with newer ruby-test-unit, fixing FTBFS of ruby-test-spec and ruby-prawn. (Closes: #713164, #713172) -- Cédric Boutillier Sun, 23 Jun 2013 00:23:29 +0200 ruby-test-spec (0.10.0-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Wed, 27 Jun 2012 00:01:39 +0200 ruby-test-spec (0.10.0-1) unstable; urgency=low * Initial release (Closes: #642364) * add a manpage for specrb * add a few patches: + 0010-disable_invalid_test_exception.patch do not throw uncatched :invalid_test exception + 0020-remove_load_path_manipulations_in_tests.patch + 0030-fix_require_path_in_examples.patch find and use system-wide installed lib -- Cédric Boutillier Sat, 10 Sep 2011 23:50:58 +0200