Commit 3a674f9 1 parent 5777ce4 commit 3a674f9 Copy full SHA for 3a674f9
File tree 6 files changed +2
-46
lines changed
6 files changed +2
-46
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- resol (0.9 .0 )
4
+ resol (1.0 .0 )
5
5
dry-initializer (~> 3.1 )
6
6
smart_initializer (~> 0.7 )
7
7
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module Resol
4
- VERSION = "0.9 .0"
4
+ VERSION = "1.0 .0"
5
5
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
RSpec . describe Resol ::Configuration do
4
- let ( :cfg_values ) { described_class . instance_variable_get ( :@values ) }
5
-
6
- it "properly configures" do
7
- expect ( described_class . return_engine ) . to eq ( described_class ::DEFAULTS [ :return_engine ] )
8
- expect ( described_class . smart_config ) . to eq ( SmartCore ::Initializer ::Configuration . config )
9
-
10
- described_class . return_engine = "kek"
11
-
12
- expect ( described_class . return_engine ) . to eq ( "kek" )
13
- expect ( described_class . to_h . equal? ( cfg_values ) ) . to eq ( false )
14
- end
15
-
16
- context "when undefined method is called" do
17
- specify do
18
- expect { described_class . kekpek } . to raise_error ( NoMethodError )
19
- end
20
- end
21
-
22
- context "when smartcore not loaded" do
23
- before { allow ( described_class ) . to receive ( :smart_not_loaded? ) . and_return ( true ) }
24
-
25
- specify { expect ( described_class . smart_config ) . to eq ( nil ) }
26
- end
27
4
end
Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ def call
101
101
102
102
RSpec . describe Resol ::Service do
103
103
context "with Catch return engine" do
104
- before { Resol ::Configuration . return_engine = Resol ::ReturnEngine ::Catch }
105
-
106
104
it "returns a success result" do
107
105
expect ( SuccessService . call! ) . to eq ( :success_result )
108
106
end
@@ -167,8 +165,6 @@ def call
167
165
end
168
166
169
167
context "with Return return engine" do
170
- before { Resol ::Configuration . return_engine = Resol ::ReturnEngine ::Return }
171
-
172
168
it "returns a success result" do
173
169
expect ( SuccessService . call! ) . to eq ( :success_result )
174
170
end
Original file line number Diff line number Diff line change @@ -39,10 +39,4 @@ class SmartService < Resol::Service
39
39
40
40
config . order = :random
41
41
Kernel . srand config . seed
42
-
43
- config . around do |ex |
44
- old_settings = Resol ::Configuration . to_h
45
- ex . call
46
- Resol ::Configuration . instance_variable_set ( :@values , old_settings )
47
- end
48
42
end
You can’t perform that action at this time.
0 commit comments