Module: Zen::Service::SpecHelpers::ClassMethods

Defined in:
lib/zen/service/spec_helpers.rb

Instance Method Summary collapse

Instance Method Details

#service_context(&block) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/zen/service/spec_helpers.rb', line 19

def service_context(&block)
  around do |example|
    ::Zen::Service.with_context(instance_exec(&block)) do
      example.run
    end
  end
end