Skip to content

Commit

Permalink
cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Dec 21, 2024
1 parent 2d0fadf commit 7f973f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lib/trailblazer/test/assertion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,14 @@ def assert_fail(*args, invoke: Activity.method(:invoke_activity), **options, &bl
super(*args, **options, invoke: invoke, &block)
end

# DISCUSS: only for Suite API so far.
def assert_pass?(*args, **options, &block)
assert_pass(*args, **options, invoke: Activity.method(:invoke_activity_with_tracing), &block)
end

def assert_fail?(*args, **options, &block)
assert_fail(*args, **options, invoke: Activity.method(:invoke_activity_with_tracing), &block)
end
# TODO: test {#assert_fail?}
end

# include Assertion # from Test::Assert, top-level
# include Assert # our assert_* versions.
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/trailblazer/test/assertion/suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def ctx_for_params_fragment(params_fragment, key_in_params:, default_ctx:, **)
# Gather all test case configuration. This involves reading all test `let` directives.
def normalize_kws(user_block:, test:, operation: test.operation, expected_attributes: test.expected_attributes, contract_name: "default", model_at: :model, invoke: Assertion.method(:invoke_operation), **options)
kws = {
# user_block: user_block,
operation: operation,
expected_attributes: expected_attributes,
test: test,
Expand Down

0 comments on commit 7f973f0

Please sign in to comment.