Sha256: 58d3d59b3786754ce1c26d7d75e81349c3b90967c388af86fc183cb9b1692e91
Contents?: true
Size: 682 Bytes
Versions: 17
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true module ConvenientService module RSpec module Helpers module StubService def stub_service(...) Custom::StubService.call(...) end def return_result(status) Custom::StubService::Entities::ResultSpec.new(status: status) end def return_success Custom::StubService::Entities::ResultSpec.new(status: :success) end def return_failure Custom::StubService::Entities::ResultSpec.new(status: :failure) end def return_error Custom::StubService::Entities::ResultSpec.new(status: :error) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems