aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mspec/lib/mspec/runner/formatters/junit.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-11-30 21:26:49 +0100
committerBenoit Daloze <eregontp@gmail.com>2019-11-30 21:26:49 +0100
commitab8345271eb87ff155d8bd5f22f53a4cf2902c26 (patch)
treea775c04b2f78d0e5ee566251f4cfbbaaf1051328 /spec/mspec/lib/mspec/runner/formatters/junit.rb
parent93a512414cbe3713f478038f6d4f5fe81c4eb62a (diff)
downloadruby-ab8345271eb87ff155d8bd5f22f53a4cf2902c26.tar.gz
Update to ruby/mspec@a401f63
Diffstat (limited to 'spec/mspec/lib/mspec/runner/formatters/junit.rb')
-rw-r--r--spec/mspec/lib/mspec/runner/formatters/junit.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/mspec/lib/mspec/runner/formatters/junit.rb b/spec/mspec/lib/mspec/runner/formatters/junit.rb
index 76d46c2414..12e43a3263 100644
--- a/spec/mspec/lib/mspec/runner/formatters/junit.rb
+++ b/spec/mspec/lib/mspec/runner/formatters/junit.rb
@@ -1,19 +1,18 @@
-require 'mspec/expectations/expectations'
require 'mspec/runner/formatters/yaml'
class JUnitFormatter < YamlFormatter
- def initialize(out=nil)
- super
+ def initialize(out = nil)
+ super(out)
@tests = []
end
def after(state = nil)
- super
+ super(state)
@tests << {:test => state, :exception => false} unless exception?
end
def exception(exception)
- super
+ super(exception)
@tests << {:test => exception, :exception => true}
end