little_boxes 0.1.0 → 0.3.7

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.
@@ -1,28 +0,0 @@
1
- require_relative '../spec_helper'
2
-
3
- describe LittleBoxes::Dependant do
4
- let(:box) { LittleBoxes::Box.new }
5
-
6
- describe 'Dependant' do
7
- it 'can be inherited' do
8
- class_one = Class.new do
9
- include LittleBoxes::Dependant
10
- dependency :one
11
- end
12
-
13
- class_two = Class.new class_one do
14
- include LittleBoxes::Dependant
15
- dependency :two
16
- end
17
-
18
- box.let(:one) { :one }
19
- box.let(:two) { :two }
20
- box.let(:dependant_one) { class_one.new }
21
- box.let(:dependant_two) { class_two.new }
22
-
23
- expect(box.dependant_one.one).to be :one
24
- expect(box.dependant_two.one).to be :one
25
- expect(box.dependant_two.two).to be :two
26
- end
27
- end
28
- end