Sha256: 3da4d8c0205a9103c5a0693a0d6b8603b9b96ca8753daefb68acc4d8744da384

Contents?: true

Size: 881 Bytes

Versions: 5

Compression:

Stored size: 881 Bytes

Contents

require "delegate" # Ruby 2.2
require "minitest/autorun"

require "trailblazer/developer"
require "trailblazer/macro"


module Mock
  class Result
    def initialize(bool); @bool = bool end
    def success?; @bool end
    def errors; ["hihi"] end
  end
end

module Test
  module ReturnCall
    def self.included(includer)
      includer._insert :_insert, ReturnResult, {replace: Trailblazer::Operation::Result::Build}, ReturnResult, ""
    end
  end
  ReturnResult = ->(last, input, options) { input }
end

require "pp"

# Minitest::Spec::Operation = Trailblazer::Operation

Memo = Struct.new(:id, :body) do
  def self.find(id)
    return new(id, "Yo!") if id
    nil
  end
end

require "trailblazer/activity/testing"
T = Trailblazer::Activity::Testing

module Rehash
  def rehash(ctx, seq:, rehash_raise: false, **)
    seq << :rehash
    raise if rehash_raise
    true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trailblazer-macro-2.1.1 test/test_helper.rb
trailblazer-macro-2.1.0 test/test_helper.rb
trailblazer-macro-2.1.0.rc14 test/test_helper.rb
trailblazer-macro-2.1.0.rc13 test/test_helper.rb
trailblazer-macro-2.1.0.rc12 test/test_helper.rb