test/test_helper.rb in trailblazer-macro-2.1.1 vs test/test_helper.rb in trailblazer-macro-2.1.2
- old
+ new
@@ -1,12 +1,13 @@
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+require "trailblazer/macro"
+
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
@@ -37,9 +38,9 @@
T = Trailblazer::Activity::Testing
module Rehash
def rehash(ctx, seq:, rehash_raise: false, **)
seq << :rehash
- raise if rehash_raise
+ raise "nope!" if rehash_raise
true
end
end