lib/convenient_service/factories/step/instance.rb in convenient_service-0.10.1 vs lib/convenient_service/factories/step/instance.rb in convenient_service-0.11.0

- old
+ new

@@ -6,15 +6,25 @@ module ConvenientService module Factories module Step module Instance ## - # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step] + # @return [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step] # def create_step_instance service_class = ::Class.new do include ::ConvenientService::Configs::Standard + + ## + # IMPORTANT: + # - `CanHaveMethodSteps` is disabled in the Standard config since it causes race conditions in combination with `CanHaveStubbedResult`. + # - It will be reenabled after the introduction of thread-safety specs. + # - Do not use it in production yet. + # + middlewares :step, scope: :class do + use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware + end step :result def result success