Sha256: 79fa8b32ac84f4d7693e49df678d7770a159ed3f906fd9d3097f5fa78ca61c57

Contents?: true

Size: 373 Bytes

Versions: 18

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

module RedminePluginsHelper
  module TestHelper
    def plugin_fixtures(plugin_name, *files)
      fixtures_dir = File.expand_path(
        'test/fixtures',
        ::Redmine::Plugin.registered_plugins[plugin_name].directory
      )
      ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, files)
      fixtures(*files)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
redmine_plugins_helper-0.15.3 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.15.2 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.15.1 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.15.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.14.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.13.2 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.13.1 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.13.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.12.2 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.12.1 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.12.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.11.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.10.0 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.9.4 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.9.3 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.9.2 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.9.1 lib/redmine_plugins_helper/test_helper.rb
redmine_plugins_helper-0.9.0 lib/redmine_plugins_helper/test_helper.rb