diff --git a/spec/mspec/lib/mspec/runner/exception.rb b/spec/mspec/lib/mspec/runner/exception.rb index aea6610cd3..e07f02f684 100644 --- a/spec/mspec/lib/mspec/runner/exception.rb +++ b/spec/mspec/lib/mspec/runner/exception.rb @@ -40,6 +40,15 @@ class ExceptionState @backtrace_filter ||= MSpecScript.config[:backtrace_filter] || %r{(?:/bin/mspec|/lib/mspec/)} bt = @exception.backtrace || [] - bt.select { |line| $MSPEC_DEBUG or @backtrace_filter !~ line }.join("\n") + unless $MSPEC_DEBUG + # Exclude (other) if other.respond_to? :to_int - other = Integer other + other = Integer(other.to_int) else other = SpecVersion.new(String(other)).to_i end diff --git a/spec/mspec/spec/fixtures/config.mspec b/spec/mspec/spec/fixtures/config.mspec index 4a069e2eb0..01654c5094 100644 --- a/spec/mspec/spec/fixtures/config.mspec +++ b/spec/mspec/spec/fixtures/config.mspec @@ -1,8 +1,6 @@ class MSpecScript set :target, 'ruby' - set :backtrace_filter, /lib\/mspec\// - set :tags_patterns, [ [%r(spec/fixtures/), 'spec/fixtures/tags/'], [/_spec.rb$/, '_tags.txt'] diff --git a/spec/mspec/spec/integration/run_spec.rb b/spec/mspec/spec/integration/run_spec.rb index df10f77094..99a5416cb0 100644 --- a/spec/mspec/spec/integration/run_spec.rb +++ b/spec/mspec/spec/integration/run_spec.rb @@ -9,14 +9,12 @@ Expected 1 == 2 to be truthy but was false CWD/spec/fixtures/a_spec.rb:8:in `block (2 levels) in ' CWD/spec/fixtures/a_spec.rb:2:in `' -CWD/bin/mspec-run:7:in `
' 2) Foo#bar fails ERROR RuntimeError: failure CWD/spec/fixtures/a_spec.rb:12:in `block (2 levels) in ' CWD/spec/fixtures/a_spec.rb:2:in `' -CWD/bin/mspec-run:7:in `
' Finished in D.DDDDDD seconds EOS diff --git a/spec/mspec/spec/integration/tag_spec.rb b/spec/mspec/spec/integration/tag_spec.rb index 1882d71e32..f4df2f0dc4 100644 --- a/spec/mspec/spec/integration/tag_spec.rb +++ b/spec/mspec/spec/integration/tag_spec.rb @@ -28,7 +28,6 @@ Expected 1 == 2 to be truthy but was false CWD/spec/fixtures/tagging_spec.rb:9:in `block (2 levels) in ' CWD/spec/fixtures/tagging_spec.rb:3:in `' -CWD/bin/mspec-tag:7:in `
' 2) Tag#me érròrs in unicode FAILED @@ -36,7 +35,6 @@ Expected 1 == 2 to be truthy but was false CWD/spec/fixtures/tagging_spec.rb:13:in `block (2 levels) in ' CWD/spec/fixtures/tagging_spec.rb:3:in `' -CWD/bin/mspec-tag:7:in `
' Finished in D.DDDDDD seconds