@@ -57,7 +57,7 @@ def assert_pass(params_fragment, deep_merge: true, assertion:, test:, expected_a
57
57
58
58
activity = kws [ :operation ] # FIXME.
59
59
60
- assertion . ( activity , ctx , test : test , expected_model_attributes : expected_attributes , user_block : kws [ :user_block ] , model_at : kws [ :model_at ] , invoke_method : kws [ :invoke_method ] )
60
+ assertion . ( activity , ctx , test : test , expected_model_attributes : expected_attributes , user_block : kws [ :user_block ] , model_at : kws [ :model_at ] , invoke : kws [ :invoke ] )
61
61
end
62
62
63
63
def assert_fail ( params_fragment , expected_errors , assertion :, **kws )
@@ -78,7 +78,7 @@ def ctx_for_params_fragment(params_fragment, key_in_params:, default_ctx:, **)
78
78
79
79
# @private
80
80
# Gather all test case configuration. This involves reading all test `let` directives.
81
- def normalize_kws ( user_block :, test :, operation : test . operation , expected_attributes : test . expected_attributes , contract_name : "default" , model_at : :model , use_wtf : false , invoke_method : :call , **options )
81
+ def normalize_kws ( user_block :, test :, operation : test . operation , expected_attributes : test . expected_attributes , contract_name : "default" , model_at : :model , use_wtf : false , invoke : Assertion . method ( :invoke_activity ) , **options )
82
82
kws = {
83
83
# user_block: user_block,
84
84
operation : operation ,
@@ -87,7 +87,7 @@ def normalize_kws(user_block:, test:, operation: test.operation, expected_attrib
87
87
contract_name : contract_name ,
88
88
model_at : model_at ,
89
89
user_block : user_block ,
90
- invoke_method : use_wtf ? :wtf? : invoke_method ,
90
+ invoke : use_wtf ? Assertion :: Wtf . method ( :invoke_activity ) : invoke ,
91
91
92
92
**normalize_kws_for_ctx ( test : test , **options )
93
93
}
0 commit comments