Skip to content
Permalink
Browse files
[Truffle] Fixed mspec report for class names with '.' in them.
  • Loading branch information
nirvdrum committed Feb 26, 2015
1 parent 591de2c commit a557e3b3053d581cffd475085256d6906de42cf7
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/truffle/truffle_formatter.rb
@@ -27,11 +27,11 @@ def load
parts = MSpec.retrieve(:file).sub(Dir.pwd + '/', '').split('/')

@spec_type = parts[0...3].join('.')
@class_name = parts[3...-1].join('_')
@class_name = parts[3...-1].join('_').gsub('.', '_')

@class_name = 'Ruby' if @class_name.empty?

@filename_base = parts[-1].split('.rb').first.split('_spec').first
@filename_base = parts[-1].split('.rb').first.split('_spec').first.to_s.gsub('.', '_')

@tests.clear
@file_time = current_time

0 comments on commit a557e3b

Please sign in to comment.