Module: Redmineup::TestHelper::ClassMethods

Defined in:
lib/redmineup/helpers/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#load_plugin_fixtures(plugin_name, *names) ⇒ Object



4
5
6
7
# File 'lib/redmineup/helpers/test_helper.rb', line 4

def load_plugin_fixtures(plugin_name, *names)
  fixtures_dir = File.join(Redmine::Plugin.find(plugin_name).directory, 'test', 'fixtures')
  ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, names)
end