[DRE-commits] [ruby-foreman] 01/02: Run tests in a specific order

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jan 9 22:51:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-foreman.

commit cf366d9ab6abd4743db02abf8eb358d24ea4eaa0
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jan 9 19:53:54 2016 -0200

    Run tests in a specific order
    
    Closes: #809594
    
    When running randomly, the first test from spec/foreman/cli_spec.rb will fail
    in a very weird way that I could not reproduce in any way outside of this
    package tests.
---
 debian/changelog       | 10 ++++++++++
 debian/ruby-tests.rake |  1 +
 2 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 982a6aa..8db8e8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+ruby-foreman (0.78.0-3) UNRELEASED; urgency=medium
+
+  * Run tests in a specific order (Closes: #809594)
+    .
+    When running in random orders, for some specific orders the first test
+    from spec/foreman/cli_spec.rb will always fail in a very weird way that I
+    could not reproduce in any way outside of this package tests.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sat, 09 Jan 2016 20:04:46 -0200
+
 ruby-foreman (0.78.0-2) unstable; urgency=medium
 
   * 0003-spec_helper-misc-changes-to-run-against-Debian-packa.patch: update to
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index dcc1601..a7fff5c 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -2,6 +2,7 @@ require 'rspec/core/rake_task'
 
 RSpec::Core::RakeTask.new(:spec) do |spec|
   spec.pattern = './spec/**/*_spec.rb'
+  spec.rspec_opts = '--seed 47932'
 end
 
 task :default => :spec

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-foreman.git



More information about the Pkg-ruby-extras-commits mailing list