Class: Ghostest::Languages::Ruby
- Inherits:
-
Object
- Object
- Ghostest::Languages::Ruby
- Defined in:
- lib/ghostest/languages/ruby.rb
Class Method Summary collapse
- .convert_source_path_to_test_path(source_path) ⇒ Object
- .create_functions ⇒ Object
- .test_condition_yml_path ⇒ Object
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_functions ⇒ Object
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_path ⇒ Object
9 10 11 |
# File 'lib/ghostest/languages/ruby.rb', line 9 def self.test_condition_yml_path "spec/ghostest_condition.yml" end |