lib/convenient_service/configs/standard.rb in convenient_service-0.2.1 vs lib/convenient_service/configs/standard.rb in convenient_service-0.3.0

- old
+ new

@@ -79,10 +79,14 @@ use Plugins::Common::NormalizesEnv::Middleware use Plugins::Service::HasResultShortSyntax::Error::Middleware end + middlewares :result, scope: :class do + use Plugins::Common::NormalizesEnv::Middleware + end + middlewares :step, scope: :class do use Plugins::Common::NormalizesEnv::Middleware use Plugins::Service::HasResultMethodSteps::Middleware end @@ -198,9 +202,21 @@ include Core concerns do use Plugins::Internals::HasCache::Concern end + end + end + + if Dependencies.rspec.loaded? + concerns do + insert_before 0, Plugins::Service::CanHaveStubbedResult::Concern + end + + middlewares :result, scope: :class do + insert_after \ + Plugins::Common::NormalizesEnv::Middleware, + Plugins::Service::CanHaveStubbedResult::Middleware end end end # rubocop:enable Lint/ConstantDefinitionInBlock end