1234567891011121314151617181920212223 |
- # Load the normal Rails helper
- require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
- module Redmine
- module PluginFixturesLoader
- def self.included(base)
- base.class_eval do
- def self.plugin_fixtures(*symbols)
- ActiveRecord::Fixtures.create_fixtures(File.dirname(__FILE__) + '/fixtures/', symbols)
- end
- end
- end
- end
- end
- unless ActionController::TestCase.included_modules.include?(Redmine::PluginFixturesLoader)
- ActionController::TestCase.send :include, Redmine::PluginFixturesLoader
- end
- unless ActiveSupport::TestCase.included_modules.include?(Redmine::PluginFixturesLoader)
- ActiveSupport::TestCase.send :include, Redmine::PluginFixturesLoader
- end
|