瀏覽代碼

Define file_fixture_path

Akinori MUSHA 2 年之前
父節點
當前提交
30350fd727
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spec/rails_helper.rb

+ 1 - 1
spec/rails_helper.rb

@@ -32,7 +32,7 @@ RSpec.configure do |config|
   config.mock_with :rspec
 
   # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
-  config.fixture_path = "#{::Rails.root}/spec/fixtures"
+  config.fixture_path = config.file_fixture_path = "#{::Rails.root}/spec/fixtures"
 
   # If you're not using ActiveRecord, or you'd prefer not to run each of your
   # examples within a transaction, remove the following line or assign false