class CodeStatisticsCalculatorTest
Public Instance Methods
setup()
click to toggle source
# File railties/test/code_statistics_calculator_test.rb, line 7 def setup @code_statistics_calculator = CodeStatisticsCalculator.new end
Private Instance Methods
temp_file(name, content) { |path| ... }
click to toggle source
# File railties/test/code_statistics_calculator_test.rb, line 321 def temp_file(name, content) dir = File.expand_path "fixtures/tmp", __dir__ path = "#{dir}/#{name}" FileUtils.mkdir_p dir File.write path, content yield path ensure FileUtils.rm_rf path end