redmine_plugins_helper 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e85f357f0bcab7126a87e73c6024417f999db4b657e39371ddc492107a6b6287
|
4
|
+
data.tar.gz: 85038fc7bae3559703d6f2a728a74cf8d336831c5c7ede88d4216a6b9ee26183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b9cf889a34e7ef54f69d07175bead407b641972c0d03a7b32394758532a6944940302cafa07e29c810674935293b94a5ff2a84841bfe755f4c26720887f43d
|
7
|
+
data.tar.gz: cc69bb1784ad3eaa8e7a21b187dea155aabff4bea75f0611d59bf4d013a58b832a020bf15ea9ca9e8d7710cc2ddc256e87edb09410f6b2e4b7ba0456d6408fee
|
@@ -8,23 +8,12 @@ module RedminePluginsHelper
|
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
10
10
|
included do
|
11
|
-
extend
|
11
|
+
extend ::RedminePluginsHelper::TestHelper
|
12
12
|
include InstanceMethods
|
13
13
|
setup { the_test_config.before_each }
|
14
14
|
teardown { the_test_config.after_each }
|
15
15
|
end
|
16
16
|
|
17
|
-
module ClassMethods
|
18
|
-
def plugin_fixtures(plugin_name, *files)
|
19
|
-
fixtures_dir = File.expand_path(
|
20
|
-
'test/fixtures',
|
21
|
-
::Redmine::Plugin.registered_plugins[plugin_name].directory
|
22
|
-
)
|
23
|
-
ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, files)
|
24
|
-
fixtures(*files)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
17
|
module InstanceMethods
|
29
18
|
def the_test_config
|
30
19
|
@the_test_config ||= ::RedminePluginsHelper::TestConfig.new
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RedminePluginsHelper
|
4
|
+
module TestHelper
|
5
|
+
def plugin_fixtures(plugin_name, *files)
|
6
|
+
fixtures_dir = File.expand_path(
|
7
|
+
'test/fixtures',
|
8
|
+
::Redmine::Plugin.registered_plugins[plugin_name].directory
|
9
|
+
)
|
10
|
+
ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, files)
|
11
|
+
fixtures(*files)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_plugins_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.
|
7
|
+
- 0.9.0
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/redmine_plugins_helper/settings.rb
|
110
110
|
- lib/redmine_plugins_helper/status_migrations.rb
|
111
111
|
- lib/redmine_plugins_helper/test_config.rb
|
112
|
+
- lib/redmine_plugins_helper/test_helper.rb
|
112
113
|
- lib/redmine_plugins_helper/version.rb
|
113
114
|
- lib/tasks/redmine.rake
|
114
115
|
- lib/tasks/redmine_plugins_helper.rake
|