File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ module Dsl
9
9
Error = Class . new ( ::ArgumentError )
10
10
IfDefinitionUnexpectedKey = Class . new ( Error )
11
11
12
- def self . unique_klass_name ( namespace :, klass_name :, camelize : true )
13
- UniqueKlassName . for ( namespace , klass_name , camelize :)
14
- end
15
-
16
12
# creates a class in the attach_klass_to's namespace
17
13
# e.g.
18
14
#
Original file line number Diff line number Diff line change
1
+ RSpec . describe Interactify ::Core do
2
+ self ::DummyClass = Class . new do
3
+ include Interactify ::Core
4
+ end
5
+
6
+ this = self
7
+
8
+ describe '#called_klass_list' do
9
+ let ( :dummy_context ) do
10
+ ctx = Interactor ::Context . new
11
+ allow ( ctx ) . to receive ( :_called ) { [ 1 , 2.3 , 'some string' ] }
12
+ ctx
13
+ end
14
+
15
+ subject do
16
+ this ::DummyClass . new ( dummy_context )
17
+ end
18
+
19
+ it 'returns the list of called classes' do
20
+ expect ( subject . called_klass_list ) . to eq ( [ Integer , Float , String ] )
21
+ end
22
+ end
23
+ end
You can’t perform that action at this time.
0 commit comments