Skip to content

Commit

Permalink
[Truffle] Fixed mspec report for class names with '.' in them.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Feb 26, 2015
1 parent 591de2c commit a557e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/truffle/truffle_formatter.rb
Expand Up @@ -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
Expand Down

0 comments on commit a557e3b

Please sign in to comment.