Przeglądaj źródła

Define file_fixture_path

Akinori MUSHA 2 lat temu
rodzic
commit
30350fd727
1 zmienionych plików z 1 dodań i 1 usunięć
  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