Path: | tasks/fixtures.rb |
Last Update: | Thu Jun 24 13:41:14 +0000 2010 |
# File tasks/fixtures.rb, line 5 5: def fixtures_path 6: return ENV['FIXTURE_PATH'] if ENV['FIXTURE_PATH'] 7: 8: fixture_path = %w(db dev schema spec).find do |parent| 9: File.exists?("#{DM_APP_ROOT}/#{parent}/fixtures") 10: end 11: 12: raise "Fixtures path not found." unless fixture_path 13: 14: "#{DM_APP_ROOT}/#{fixture_path}/fixtures" 15: end