我想在我的 Rails 3 模板中spec_helper.rb
使用thor注释文件 () 中的一行?
从:
config.fixture_path = "#{::Rails.root}/spec/fixtures"
至
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
我知道我可以使用 向文件注入一行inject_into_file
,但我想评论指定文件中的一行。
谢谢!
我想在我的 Rails 3 模板中spec_helper.rb
使用thor注释文件 () 中的一行?
从:
config.fixture_path = "#{::Rails.root}/spec/fixtures"
至
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
我知道我可以使用 向文件注入一行inject_into_file
,但我想评论指定文件中的一行。
谢谢!