functional-light-service 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.rspec +3 -0
- data/.rubocop.yml +72 -0
- data/.travis.yml +22 -0
- data/Appraisals +3 -0
- data/CHANGELOG.md +37 -0
- data/CODE_OF_CONDUCT.md +22 -0
- data/Gemfile +6 -0
- data/LICENSE +22 -0
- data/README.md +1424 -0
- data/Rakefile +12 -0
- data/VERSION +1 -0
- data/functional-light-service.gemspec +26 -0
- data/gemfiles/activesupport_5.gemfile +8 -0
- data/gemfiles/activesupport_5.gemfile.lock +82 -0
- data/lib/functional-light-service/action.rb +102 -0
- data/lib/functional-light-service/configuration.rb +24 -0
- data/lib/functional-light-service/context/key_verifier.rb +118 -0
- data/lib/functional-light-service/context.rb +165 -0
- data/lib/functional-light-service/errors.rb +6 -0
- data/lib/functional-light-service/functional/enum.rb +254 -0
- data/lib/functional-light-service/functional/maybe.rb +14 -0
- data/lib/functional-light-service/functional/monad.rb +66 -0
- data/lib/functional-light-service/functional/null.rb +74 -0
- data/lib/functional-light-service/functional/option.rb +99 -0
- data/lib/functional-light-service/functional/result.rb +122 -0
- data/lib/functional-light-service/localization_adapter.rb +44 -0
- data/lib/functional-light-service/organizer/execute.rb +14 -0
- data/lib/functional-light-service/organizer/iterate.rb +22 -0
- data/lib/functional-light-service/organizer/reduce_if.rb +17 -0
- data/lib/functional-light-service/organizer/reduce_until.rb +20 -0
- data/lib/functional-light-service/organizer/scoped_reducable.rb +13 -0
- data/lib/functional-light-service/organizer/verify_call_method_exists.rb +28 -0
- data/lib/functional-light-service/organizer/with_callback.rb +26 -0
- data/lib/functional-light-service/organizer/with_reducer.rb +71 -0
- data/lib/functional-light-service/organizer/with_reducer_factory.rb +18 -0
- data/lib/functional-light-service/organizer/with_reducer_log_decorator.rb +105 -0
- data/lib/functional-light-service/organizer.rb +105 -0
- data/lib/functional-light-service/testing/context_factory.rb +40 -0
- data/lib/functional-light-service/testing.rb +1 -0
- data/lib/functional-light-service/version.rb +3 -0
- data/lib/functional-light-service.rb +29 -0
- data/resources/fail_actions.png +0 -0
- data/resources/light-service.png +0 -0
- data/resources/organizer_and_actions.png +0 -0
- data/resources/skip_actions.png +0 -0
- data/spec/acceptance/add_numbers_spec.rb +11 -0
- data/spec/acceptance/after_actions_spec.rb +71 -0
- data/spec/acceptance/around_each_spec.rb +19 -0
- data/spec/acceptance/before_actions_spec.rb +98 -0
- data/spec/acceptance/custom_log_from_organizer_spec.rb +60 -0
- data/spec/acceptance/fail_spec.rb +24 -0
- data/spec/acceptance/include_warning_spec.rb +29 -0
- data/spec/acceptance/log_from_organizer_spec.rb +154 -0
- data/spec/acceptance/message_localization_spec.rb +118 -0
- data/spec/acceptance/not_having_call_method_warning_spec.rb +39 -0
- data/spec/acceptance/organizer/around_each_with_reduce_if_spec.rb +42 -0
- data/spec/acceptance/organizer/context_failure_and_skipping_spec.rb +65 -0
- data/spec/acceptance/organizer/execute_spec.rb +46 -0
- data/spec/acceptance/organizer/iterate_spec.rb +37 -0
- data/spec/acceptance/organizer/reduce_if_spec.rb +51 -0
- data/spec/acceptance/organizer/reduce_until_spec.rb +43 -0
- data/spec/acceptance/organizer/with_callback_spec.rb +110 -0
- data/spec/acceptance/rollback_spec.rb +132 -0
- data/spec/acceptance/skip_all_warning_spec.rb +20 -0
- data/spec/acceptance/testing/context_factory_spec.rb +54 -0
- data/spec/action_expected_keys_spec.rb +63 -0
- data/spec/action_expects_and_promises_spec.rb +93 -0
- data/spec/action_promised_keys_spec.rb +122 -0
- data/spec/action_spec.rb +89 -0
- data/spec/context/inspect_spec.rb +57 -0
- data/spec/context_spec.rb +197 -0
- data/spec/examples/amount_spec.rb +77 -0
- data/spec/examples/controller_spec.rb +63 -0
- data/spec/examples/validate_address_spec.rb +37 -0
- data/spec/lib/deterministic/class_mixin_spec.rb +24 -0
- data/spec/lib/deterministic/currify_spec.rb +88 -0
- data/spec/lib/deterministic/monad_axioms.rb +44 -0
- data/spec/lib/deterministic/monad_spec.rb +45 -0
- data/spec/lib/deterministic/null_spec.rb +58 -0
- data/spec/lib/deterministic/option_spec.rb +133 -0
- data/spec/lib/deterministic/result/failure_spec.rb +65 -0
- data/spec/lib/deterministic/result/result_map_spec.rb +154 -0
- data/spec/lib/deterministic/result/result_shared.rb +24 -0
- data/spec/lib/deterministic/result/success_spec.rb +41 -0
- data/spec/lib/deterministic/result_spec.rb +63 -0
- data/spec/lib/enum_spec.rb +112 -0
- data/spec/localization_adapter_spec.rb +83 -0
- data/spec/organizer/with_reducer_spec.rb +56 -0
- data/spec/organizer_key_aliases_spec.rb +29 -0
- data/spec/organizer_spec.rb +93 -0
- data/spec/readme_spec.rb +47 -0
- data/spec/sample/calculates_order_tax_action_spec.rb +16 -0
- data/spec/sample/calculates_tax_spec.rb +30 -0
- data/spec/sample/looks_up_tax_percentage_action_spec.rb +53 -0
- data/spec/sample/provides_free_shipping_action_spec.rb +25 -0
- data/spec/sample/tax/calculates_order_tax_action.rb +9 -0
- data/spec/sample/tax/calculates_tax.rb +11 -0
- data/spec/sample/tax/looks_up_tax_percentage_action.rb +27 -0
- data/spec/sample/tax/provides_free_shipping_action.rb +10 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support.rb +1 -0
- data/spec/test_doubles.rb +552 -0
- data/spec/testing/context_factory/iterate_spec.rb +39 -0
- data/spec/testing/context_factory/reduce_if_spec.rb +40 -0
- data/spec/testing/context_factory/reduce_until_spec.rb +40 -0
- data/spec/testing/context_factory/with_callback_spec.rb +38 -0
- data/spec/testing/context_factory_spec.rb +55 -0
- metadata +285 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'test_doubles'
|
3
|
+
|
4
|
+
RSpec.describe 'ContextFactory - used with CallbackOrganizer' do
|
5
|
+
let(:organizer) { TestDoubles::CallbackOrganizer }
|
6
|
+
|
7
|
+
context 'when called with the callback action' do
|
8
|
+
it 'creates a context up-to the callback action' do
|
9
|
+
ctx =
|
10
|
+
FunctionalLightService::Testing::ContextFactory
|
11
|
+
.make_from(organizer)
|
12
|
+
.for(TestDoubles::AddTenCallbackAction)
|
13
|
+
.with(:number => 1)
|
14
|
+
|
15
|
+
expect(ctx.number).to eq(2)
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'creates a context up-to callback action with empty context steps' do
|
19
|
+
ctx =
|
20
|
+
FunctionalLightService::Testing::ContextFactory
|
21
|
+
.make_from(organizer)
|
22
|
+
.for(TestDoubles::AddsTwoAction)
|
23
|
+
.with(:number => 1)
|
24
|
+
|
25
|
+
expect(ctx.number).to eq(12)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'creates a context up-to the action defined in context steps' do
|
29
|
+
ctx =
|
30
|
+
FunctionalLightService::Testing::ContextFactory
|
31
|
+
.make_from(organizer)
|
32
|
+
.for(TestDoubles::AddsThreeAction)
|
33
|
+
.with(:number => 1)
|
34
|
+
|
35
|
+
expect(ctx.number).to eq(14)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "test_doubles"
|
3
|
+
|
4
|
+
describe "ContextFactory - used with AdditionOrganizer" do
|
5
|
+
let(:organizer) { TestDoubles::AdditionOrganizer }
|
6
|
+
|
7
|
+
context "when called with the first action" do
|
8
|
+
it "does not alter the context" do
|
9
|
+
ctx = FunctionalLightService::Testing::ContextFactory
|
10
|
+
.make_from(organizer)
|
11
|
+
.for(TestDoubles::AddsOneAction)
|
12
|
+
.with(1)
|
13
|
+
|
14
|
+
expect(ctx[:number]).to eq(1)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "when called with the second action" do
|
19
|
+
it "adds one to the number provided" do
|
20
|
+
ctx = FunctionalLightService::Testing::ContextFactory
|
21
|
+
.make_from(organizer)
|
22
|
+
.for(TestDoubles::AddsTwoAction)
|
23
|
+
.with(1)
|
24
|
+
|
25
|
+
expect(ctx.number).to eq(2)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "when called with third action" do
|
30
|
+
it "creates a context up-to the action defined" do
|
31
|
+
ctx = FunctionalLightService::Testing::ContextFactory
|
32
|
+
.make_from(organizer)
|
33
|
+
.for(TestDoubles::AddsThreeAction)
|
34
|
+
.with(1)
|
35
|
+
|
36
|
+
expect(ctx.number).to eq(4)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context "when there are already before_actions" do
|
41
|
+
it "only appends before_actions" do
|
42
|
+
TestDoubles::AdditionOrganizer.before_actions = [
|
43
|
+
->(ctx) { ctx[:number] += 1 if ctx.current_action == TestDoubles::AddsTwoAction }
|
44
|
+
]
|
45
|
+
|
46
|
+
context = FunctionalLightService::Testing::ContextFactory
|
47
|
+
.make_from(TestDoubles::AdditionOrganizer)
|
48
|
+
.for(TestDoubles::AddsThreeAction)
|
49
|
+
.with(4) # Context is a "glorified" hash
|
50
|
+
|
51
|
+
expect(context.number).to eq(8)
|
52
|
+
expect(context[:_before_actions].length).to eq(1)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
ADDED
@@ -0,0 +1,285 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: functional-light-service
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Boscolo Michele
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: simplecov
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.16.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.16.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.63.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.63.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.12.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.12.2
|
83
|
+
description: A service skeleton with an emphasis on simplicity with a pinch a functional
|
84
|
+
programming
|
85
|
+
email:
|
86
|
+
- miboscol@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".rubocop.yml"
|
94
|
+
- ".travis.yml"
|
95
|
+
- Appraisals
|
96
|
+
- CHANGELOG.md
|
97
|
+
- CODE_OF_CONDUCT.md
|
98
|
+
- Gemfile
|
99
|
+
- LICENSE
|
100
|
+
- README.md
|
101
|
+
- Rakefile
|
102
|
+
- VERSION
|
103
|
+
- functional-light-service.gemspec
|
104
|
+
- gemfiles/activesupport_5.gemfile
|
105
|
+
- gemfiles/activesupport_5.gemfile.lock
|
106
|
+
- lib/functional-light-service.rb
|
107
|
+
- lib/functional-light-service/action.rb
|
108
|
+
- lib/functional-light-service/configuration.rb
|
109
|
+
- lib/functional-light-service/context.rb
|
110
|
+
- lib/functional-light-service/context/key_verifier.rb
|
111
|
+
- lib/functional-light-service/errors.rb
|
112
|
+
- lib/functional-light-service/functional/enum.rb
|
113
|
+
- lib/functional-light-service/functional/maybe.rb
|
114
|
+
- lib/functional-light-service/functional/monad.rb
|
115
|
+
- lib/functional-light-service/functional/null.rb
|
116
|
+
- lib/functional-light-service/functional/option.rb
|
117
|
+
- lib/functional-light-service/functional/result.rb
|
118
|
+
- lib/functional-light-service/localization_adapter.rb
|
119
|
+
- lib/functional-light-service/organizer.rb
|
120
|
+
- lib/functional-light-service/organizer/execute.rb
|
121
|
+
- lib/functional-light-service/organizer/iterate.rb
|
122
|
+
- lib/functional-light-service/organizer/reduce_if.rb
|
123
|
+
- lib/functional-light-service/organizer/reduce_until.rb
|
124
|
+
- lib/functional-light-service/organizer/scoped_reducable.rb
|
125
|
+
- lib/functional-light-service/organizer/verify_call_method_exists.rb
|
126
|
+
- lib/functional-light-service/organizer/with_callback.rb
|
127
|
+
- lib/functional-light-service/organizer/with_reducer.rb
|
128
|
+
- lib/functional-light-service/organizer/with_reducer_factory.rb
|
129
|
+
- lib/functional-light-service/organizer/with_reducer_log_decorator.rb
|
130
|
+
- lib/functional-light-service/testing.rb
|
131
|
+
- lib/functional-light-service/testing/context_factory.rb
|
132
|
+
- lib/functional-light-service/version.rb
|
133
|
+
- resources/fail_actions.png
|
134
|
+
- resources/light-service.png
|
135
|
+
- resources/organizer_and_actions.png
|
136
|
+
- resources/skip_actions.png
|
137
|
+
- spec/acceptance/add_numbers_spec.rb
|
138
|
+
- spec/acceptance/after_actions_spec.rb
|
139
|
+
- spec/acceptance/around_each_spec.rb
|
140
|
+
- spec/acceptance/before_actions_spec.rb
|
141
|
+
- spec/acceptance/custom_log_from_organizer_spec.rb
|
142
|
+
- spec/acceptance/fail_spec.rb
|
143
|
+
- spec/acceptance/include_warning_spec.rb
|
144
|
+
- spec/acceptance/log_from_organizer_spec.rb
|
145
|
+
- spec/acceptance/message_localization_spec.rb
|
146
|
+
- spec/acceptance/not_having_call_method_warning_spec.rb
|
147
|
+
- spec/acceptance/organizer/around_each_with_reduce_if_spec.rb
|
148
|
+
- spec/acceptance/organizer/context_failure_and_skipping_spec.rb
|
149
|
+
- spec/acceptance/organizer/execute_spec.rb
|
150
|
+
- spec/acceptance/organizer/iterate_spec.rb
|
151
|
+
- spec/acceptance/organizer/reduce_if_spec.rb
|
152
|
+
- spec/acceptance/organizer/reduce_until_spec.rb
|
153
|
+
- spec/acceptance/organizer/with_callback_spec.rb
|
154
|
+
- spec/acceptance/rollback_spec.rb
|
155
|
+
- spec/acceptance/skip_all_warning_spec.rb
|
156
|
+
- spec/acceptance/testing/context_factory_spec.rb
|
157
|
+
- spec/action_expected_keys_spec.rb
|
158
|
+
- spec/action_expects_and_promises_spec.rb
|
159
|
+
- spec/action_promised_keys_spec.rb
|
160
|
+
- spec/action_spec.rb
|
161
|
+
- spec/context/inspect_spec.rb
|
162
|
+
- spec/context_spec.rb
|
163
|
+
- spec/examples/amount_spec.rb
|
164
|
+
- spec/examples/controller_spec.rb
|
165
|
+
- spec/examples/validate_address_spec.rb
|
166
|
+
- spec/lib/deterministic/class_mixin_spec.rb
|
167
|
+
- spec/lib/deterministic/currify_spec.rb
|
168
|
+
- spec/lib/deterministic/monad_axioms.rb
|
169
|
+
- spec/lib/deterministic/monad_spec.rb
|
170
|
+
- spec/lib/deterministic/null_spec.rb
|
171
|
+
- spec/lib/deterministic/option_spec.rb
|
172
|
+
- spec/lib/deterministic/result/failure_spec.rb
|
173
|
+
- spec/lib/deterministic/result/result_map_spec.rb
|
174
|
+
- spec/lib/deterministic/result/result_shared.rb
|
175
|
+
- spec/lib/deterministic/result/success_spec.rb
|
176
|
+
- spec/lib/deterministic/result_spec.rb
|
177
|
+
- spec/lib/enum_spec.rb
|
178
|
+
- spec/localization_adapter_spec.rb
|
179
|
+
- spec/organizer/with_reducer_spec.rb
|
180
|
+
- spec/organizer_key_aliases_spec.rb
|
181
|
+
- spec/organizer_spec.rb
|
182
|
+
- spec/readme_spec.rb
|
183
|
+
- spec/sample/calculates_order_tax_action_spec.rb
|
184
|
+
- spec/sample/calculates_tax_spec.rb
|
185
|
+
- spec/sample/looks_up_tax_percentage_action_spec.rb
|
186
|
+
- spec/sample/provides_free_shipping_action_spec.rb
|
187
|
+
- spec/sample/tax/calculates_order_tax_action.rb
|
188
|
+
- spec/sample/tax/calculates_tax.rb
|
189
|
+
- spec/sample/tax/looks_up_tax_percentage_action.rb
|
190
|
+
- spec/sample/tax/provides_free_shipping_action.rb
|
191
|
+
- spec/spec_helper.rb
|
192
|
+
- spec/support.rb
|
193
|
+
- spec/test_doubles.rb
|
194
|
+
- spec/testing/context_factory/iterate_spec.rb
|
195
|
+
- spec/testing/context_factory/reduce_if_spec.rb
|
196
|
+
- spec/testing/context_factory/reduce_until_spec.rb
|
197
|
+
- spec/testing/context_factory/with_callback_spec.rb
|
198
|
+
- spec/testing/context_factory_spec.rb
|
199
|
+
homepage: https://github.com/sphynx79/functional-light-service
|
200
|
+
licenses:
|
201
|
+
- MIT
|
202
|
+
metadata: {}
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
requirements: []
|
218
|
+
rubygems_version: 3.0.2
|
219
|
+
signing_key:
|
220
|
+
specification_version: 4
|
221
|
+
summary: A service skeleton with an emphasis on simplicity with a pinch a functional
|
222
|
+
programming
|
223
|
+
test_files:
|
224
|
+
- spec/acceptance/add_numbers_spec.rb
|
225
|
+
- spec/acceptance/after_actions_spec.rb
|
226
|
+
- spec/acceptance/around_each_spec.rb
|
227
|
+
- spec/acceptance/before_actions_spec.rb
|
228
|
+
- spec/acceptance/custom_log_from_organizer_spec.rb
|
229
|
+
- spec/acceptance/fail_spec.rb
|
230
|
+
- spec/acceptance/include_warning_spec.rb
|
231
|
+
- spec/acceptance/log_from_organizer_spec.rb
|
232
|
+
- spec/acceptance/message_localization_spec.rb
|
233
|
+
- spec/acceptance/not_having_call_method_warning_spec.rb
|
234
|
+
- spec/acceptance/organizer/around_each_with_reduce_if_spec.rb
|
235
|
+
- spec/acceptance/organizer/context_failure_and_skipping_spec.rb
|
236
|
+
- spec/acceptance/organizer/execute_spec.rb
|
237
|
+
- spec/acceptance/organizer/iterate_spec.rb
|
238
|
+
- spec/acceptance/organizer/reduce_if_spec.rb
|
239
|
+
- spec/acceptance/organizer/reduce_until_spec.rb
|
240
|
+
- spec/acceptance/organizer/with_callback_spec.rb
|
241
|
+
- spec/acceptance/rollback_spec.rb
|
242
|
+
- spec/acceptance/skip_all_warning_spec.rb
|
243
|
+
- spec/acceptance/testing/context_factory_spec.rb
|
244
|
+
- spec/action_expected_keys_spec.rb
|
245
|
+
- spec/action_expects_and_promises_spec.rb
|
246
|
+
- spec/action_promised_keys_spec.rb
|
247
|
+
- spec/action_spec.rb
|
248
|
+
- spec/context/inspect_spec.rb
|
249
|
+
- spec/context_spec.rb
|
250
|
+
- spec/examples/amount_spec.rb
|
251
|
+
- spec/examples/controller_spec.rb
|
252
|
+
- spec/examples/validate_address_spec.rb
|
253
|
+
- spec/lib/deterministic/class_mixin_spec.rb
|
254
|
+
- spec/lib/deterministic/currify_spec.rb
|
255
|
+
- spec/lib/deterministic/monad_axioms.rb
|
256
|
+
- spec/lib/deterministic/monad_spec.rb
|
257
|
+
- spec/lib/deterministic/null_spec.rb
|
258
|
+
- spec/lib/deterministic/option_spec.rb
|
259
|
+
- spec/lib/deterministic/result/failure_spec.rb
|
260
|
+
- spec/lib/deterministic/result/result_map_spec.rb
|
261
|
+
- spec/lib/deterministic/result/result_shared.rb
|
262
|
+
- spec/lib/deterministic/result/success_spec.rb
|
263
|
+
- spec/lib/deterministic/result_spec.rb
|
264
|
+
- spec/lib/enum_spec.rb
|
265
|
+
- spec/localization_adapter_spec.rb
|
266
|
+
- spec/organizer/with_reducer_spec.rb
|
267
|
+
- spec/organizer_key_aliases_spec.rb
|
268
|
+
- spec/organizer_spec.rb
|
269
|
+
- spec/readme_spec.rb
|
270
|
+
- spec/sample/calculates_order_tax_action_spec.rb
|
271
|
+
- spec/sample/calculates_tax_spec.rb
|
272
|
+
- spec/sample/looks_up_tax_percentage_action_spec.rb
|
273
|
+
- spec/sample/provides_free_shipping_action_spec.rb
|
274
|
+
- spec/sample/tax/calculates_order_tax_action.rb
|
275
|
+
- spec/sample/tax/calculates_tax.rb
|
276
|
+
- spec/sample/tax/looks_up_tax_percentage_action.rb
|
277
|
+
- spec/sample/tax/provides_free_shipping_action.rb
|
278
|
+
- spec/spec_helper.rb
|
279
|
+
- spec/support.rb
|
280
|
+
- spec/test_doubles.rb
|
281
|
+
- spec/testing/context_factory/iterate_spec.rb
|
282
|
+
- spec/testing/context_factory/reduce_if_spec.rb
|
283
|
+
- spec/testing/context_factory/reduce_until_spec.rb
|
284
|
+
- spec/testing/context_factory/with_callback_spec.rb
|
285
|
+
- spec/testing/context_factory_spec.rb
|