Today I Learned

hashrocket A Hashrocket project

Rails change fixture file lookup path

By default, the Rails fixture_file_upload helper looks in the spec/fixtures/files directory.

You can change this default path in your spec helper:

RSpec.configure do |config|
  config.file_fixture_path = "spec/fixtures/not_files"
end
See More #rails TILs
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.