lingohub_utils 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,10 +33,10 @@ module Lh
|
|
33
33
|
end
|
34
34
|
|
35
35
|
class Context
|
36
|
-
@@registry =
|
36
|
+
@@registry = Lh::DependencyInjection::ContextHash.new
|
37
37
|
|
38
38
|
def self.register
|
39
|
-
r =
|
39
|
+
r = Lh::DependencyInjection::ContextHash.new
|
40
40
|
yield r
|
41
41
|
@@registry.merge!(r)
|
42
42
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require "lh/dependency_injection/autowire"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe Lh::DependencyInjection::Autowire do
|
4
4
|
before :each do
|
5
|
-
|
5
|
+
Lh::DependencyInjection::Context.register do |r|
|
6
6
|
r[:injected] = Injected.new
|
7
7
|
end
|
8
8
|
end
|
@@ -18,7 +18,7 @@ describe LH::DependencyInjection::Autowire do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class InjectedIn
|
21
|
-
include
|
21
|
+
include Lh::DependencyInjection::Autowire
|
22
22
|
|
23
23
|
autowire :injected
|
24
24
|
end
|