test/test_helper.rb in trailblazer-macro-2.1.0.rc1 vs test/test_helper.rb in trailblazer-macro-2.1.0.rc11

- old
+ new

@@ -1,10 +1,11 @@ -require "pp" require "delegate" # Ruby 2.2 -require "trailblazer/macro" require "minitest/autorun" +require "trailblazer/macro" + + module Mock class Result def initialize(bool); @bool = bool end def success?; @bool end def errors; ["hihi"] end @@ -20,15 +21,24 @@ ReturnResult = ->(last, input, options) { input } end require "pp" -Minitest::Spec::Operation = Trailblazer::Operation +# 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_relative "lib/methods" +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