Added system tests under Redmine 4
This commit is contained in:
10
lib/body_tracking/plugin_fixtures_loader.rb
Normal file
10
lib/body_tracking/plugin_fixtures_loader.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
module BodyTracking::PluginFixturesLoader
|
||||
def self.included(base)
|
||||
base.class_eval do
|
||||
def self.plugin_fixtures(*symbols)
|
||||
fixtures_dir = File.expand_path('../../test/fixtures/', __FILE__)
|
||||
ActiveRecord::Fixtures.create_fixtures(fixtures_dir, symbols)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user