我有以下结构:
MyProject --> Main folder of my project.
MyProject/my_class.rb
MyProject/inputs/input1.txt
MyProject/inputs/input2.txt
MyProject/rspec/spec_helper.rb
MyProject/rspec/my_class_spec.rb
什么是一种优雅的方式或最常见的方式,以便我可以在 my_class_spec.rb 中使用 input1.txt 和 input2.txt?