Class: Ghostest::Languages::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/ghostest/languages/ruby.rb

Class Method Summary collapse

Class Method Details

.convert_source_path_to_test_path(source_path) ⇒ Object



4
5
6
7
# File 'lib/ghostest/languages/ruby.rb', line 4

def self.convert_source_path_to_test_path(source_path)
  # .rbで終わるファイルパスを前提とする
  "spec/#{source_path}".gsub(/\.rb$/, '_spec.rb')
end

.create_functionsObject



13
14
15
16
17
18
# File 'lib/ghostest/languages/ruby.rb', line 13

def self.create_functions
  [
    Llm::Functions::ExecRspecTest.new,
    Llm::Functions::GetGemFilesList.new,
  ]
end

.test_condition_yml_pathObject



9
10
11
# File 'lib/ghostest/languages/ruby.rb', line 9

def self.test_condition_yml_path
  "spec/ghostest_condition.yml"
end