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

Version Path
convenient_service-0.14.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.13.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.12.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.11.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.10.1 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.10.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.9.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.8.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.7.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.6.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.5.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.4.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.3.1 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.3.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.2.1 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.2.0 lib/convenient_service/rspec/helpers/stub_service.rb
convenient_service-0.1.0 lib/convenient_service/rspec/helpers/stub_service.rb