I am writing tests for a model Friends::New. My new_test.rb file looks like :
require 'test_helper'
class Friends::New < ActiveSupport::TestCase
fixtures :news.yml
end
My news.yml is located in test/fixtures/friends/news.yml. But during running test, it tries to find news.yml in test/fixtures/. How do I tell it to search the yml file in test/fixtures/friends?
Aucun commentaire:
Enregistrer un commentaire