[DRE-commits] [ruby-rspec-instafail] 40/108: fix brittle specs for 1.9
Hideki Yamane
henrich at moszumanska.debian.org
Sun Nov 15 18:36:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-rspec-instafail.
commit 82ebfebe4d5590fae326fce18325088c3dd372bb
Author: grosser <grosser.michael at gmail.com>
Date: Tue Nov 16 10:55:39 2010 +0100
fix brittle specs for 1.9
---
spec/instafail_spec.rb | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/spec/instafail_spec.rb b/spec/instafail_spec.rb
index e558a0d..bf5cfe4 100644
--- a/spec/instafail_spec.rb
+++ b/spec/instafail_spec.rb
@@ -5,27 +5,22 @@ describe 'RSpec::Instafail' do
1\\) x a
expected: 2,
got: 1 \\(using ==\\)
- # \\.\\/a_test\\.rb:5:
+ # (\\.\\/)?a_test\\.rb:5:(in `block \\(2 levels\\) in <top \\(required\\)>')?
\\.\\.\\*\\.
Pending:
x d \\(TODO\\)
-\\.\\/a_test\\.rb:14
+(\\.\\/)?a_test\\.rb:14(\:in `block in <top \\(required\\)>')?
1\\)
'x a' FAILED
expected: 2,
got: 1 \\(using ==\\)
-\\./a_test\\.rb:5:
-
-Finished in \\d\\.\\d+ seconds
-
-5 examples, 1 failure, 1 pending
+(\\./)?a_test\\.rb:5:(in `block \\(2 levels\\) in <top \\(required\\)>')?
EXP
output.should =~ Regexp.new(expected_output, 'x')
-
end
it "works correctly with RSpec 2.x (but backtrace might be broken)" do
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-instafail.git
More information about the Pkg-ruby-extras-commits
mailing list