inheritable_fixtures 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4d5c0d773db77d64c60d34898ea2af61196308d
4
- data.tar.gz: 391c5c79d9868305926653d6fcdb4069c7a699d6
3
+ metadata.gz: 7682d59913d99ff3c89621d81e45b0d9422e71c0
4
+ data.tar.gz: c6cd1619be1124fbe4354cb2bc9c20f012efe047
5
5
  SHA512:
6
- metadata.gz: 2f1d75012b022b1c5bef1498545098d99039184d8493fcfd2a7c6e6570e5709f2b2e0f2d04623363c62877df995420f3fa9d2e90a204914462f2f27052f717bd
7
- data.tar.gz: 0568d5092d8609a4b7d1fd93596330423a64ee0e2247a2d42c65dcb7d963211344dc65eb69870352e5352f56080100110d635512ae876c4ad0548cf916c2dc9c
6
+ metadata.gz: 57b776ace7cb88dafcd74df3882a4cac4f334dcc1ce6deeb3cb6c45b8d84e59834f64d7873810749d97b2655ce1400f53c2124577b1f52c7df7d41ddebdcd3ac
7
+ data.tar.gz: e410197bfcc0b0791990e64f92ff91be9e6d0a06c1b29da09194b7a701f3c620b389bf72cec9c49fe7a28cf57570720c59ae3944448a063085830f331aedee7b
@@ -29,5 +29,5 @@ module ActionDispatch
29
29
  end
30
30
  end
31
31
 
32
- Rails::Engine::Configuration.prepend(::InheritableFixtures::RailsExtensions::Engine)
32
+ Rails::Engine.include(::InheritableFixtures::RailsExtensions::Engine)
33
33
 
@@ -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
- fixtures_path = root.join('lib', name.underscore, 'test', 'fixtures').to_s
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
@@ -1,3 +1,3 @@
1
1
  module InheritableFixtures
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inheritable_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Kmiec