inheritable_fixtures 0.1.2 → 0.1.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7682d59913d99ff3c89621d81e45b0d9422e71c0
|
4
|
+
data.tar.gz: c6cd1619be1124fbe4354cb2bc9c20f012efe047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b776ace7cb88dafcd74df3882a4cac4f334dcc1ce6deeb3cb6c45b8d84e59834f64d7873810749d97b2655ce1400f53c2124577b1f52c7df7d41ddebdcd3ac
|
7
|
+
data.tar.gz: e410197bfcc0b0791990e64f92ff91be9e6d0a06c1b29da09194b7a701f3c620b389bf72cec9c49fe7a28cf57570720c59ae3944448a063085830f331aedee7b
|
data/lib/inheritable_fixtures.rb
CHANGED
@@ -4,7 +4,8 @@ module InheritableFixtures
|
|
4
4
|
def self.included(target)
|
5
5
|
target.class_eval do
|
6
6
|
initializer :append_fixtures_paths, group: :all do |app|
|
7
|
-
|
7
|
+
engine_name = self.class.name.split('::')[-2].underscore
|
8
|
+
fixtures_path = root.join('lib', engine_name, 'test', 'fixtures').to_s
|
8
9
|
app.config.fixtures_paths.unshift(fixtures_path) if File.exists?(fixtures_path)
|
9
10
|
end
|
10
11
|
end
|