Method: JUnitFormatter#load
- Defined in:
- lib/extensions/mspec/mspec/runner/formatters/junit.rb
#load(state = nil) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/extensions/mspec/mspec/runner/formatters/junit.rb', line 17 def load(state = nil) spec_path, spec_file = File.split((MSpec.retrieve(:file)+'.rb').gsub(/^spec\//,'')) if (spec_path.empty? || spec_path.nil?) && spec_file =~ /(.*)_spec/i spec_path = $1 end @spec_path = encode_for_xml( spec_path.gsub('/','.') ) end |