[DRE-commits] [ruby-rspec] 07/19: fixup
Jérémy Bobbio
lunar at alioth.debian.org
Sun Oct 20 17:01:20 UTC 2013
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/multideb
in repository ruby-rspec.
commit 8bdf4351aac3f7afc32af5bc735dc5cd532bce64
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sun Oct 20 10:41:40 2013 +0200
fixup
---
debian/ruby-tests.rb | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index a130a05..082c5c0 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,22 +1,26 @@
-$: << 'rspec-core/spec'
-$: << 'rspec-core/lib'
+$: << '../rspec-core/spec'
+$: << '../rspec-core/lib'
require "rspec/core"
EXC_TESTS = [
# require 'syntax' gem
- 'rspec-core/spec/rspec/core/formatters/text_mate_formatter_spec.rb',
- 'rspec-core/spec/rspec/core/formatters/html_formatter_spec.rb'
+ 'spec/rspec/core/formatters/text_mate_formatter_spec.rb',
+ 'spec/rspec/core/formatters/html_formatter_spec.rb'
]
-RSpec::Core::Runner.run(Dir["rspec-core/spec/rspec/**/*_spec.rb"] - EXC_TESTS, $stderr, $stdout) || fail
+Dir.chdir('rspec-core') do
+ RSpec::Core::Runner.run(Dir["spec/rspec/**/*_spec.rb"] - EXC_TESTS, $stderr, $stdout) || fail
+end
-with_core = $:
-$: << 'rspec-expectations/spec'
-$: << 'rspec-expectations/lib'
-RSpec::Core::Runner.run(Dir["rspec-expectations/spec/rspec/**/*_spec.rb"], $stderr, $stdout) || fail
+$: << 'spec'
+$: << 'lib'
+
+Dir.chdir('rspec-expectations') do
+ RSpec::Core::Runner.run(Dir["spec/rspec/**/*_spec.rb"], $stderr, $stdout) || fail
+end
-$: = with_core
-$: << 'rspec-mocks/spec'
-$: << 'rspec-mocks/lib'
#The specs need yaml to be loaded before spec_helper
#https://github.com/rspec/rspec-mocks/issues/107
require "yaml"
-RSpec::Core::Runner.run(Dir["rspec-mocks/spec/rspec/**/*_spec.rb"], $stderr, $stdout) || fail
+
+Dir.chdir('rspec-mocks') do
+ RSpec::Core::Runner.run(Dir["spec/rspec/**/*_spec.rb"], $stderr, $stdout) || fail
+end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec.git
More information about the Pkg-ruby-extras-commits
mailing list