From 7f973f0386e09e4baf873a22743c37e93a6ee0d7 Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Sat, 21 Dec 2024 16:56:41 +0100 Subject: [PATCH] cleanup. --- lib/trailblazer/test/assertion.rb | 5 ----- lib/trailblazer/test/assertion/suite.rb | 1 - 2 files changed, 6 deletions(-) diff --git a/lib/trailblazer/test/assertion.rb b/lib/trailblazer/test/assertion.rb index 16a5988..66f36fd 100644 --- a/lib/trailblazer/test/assertion.rb +++ b/lib/trailblazer/test/assertion.rb @@ -82,7 +82,6 @@ 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 @@ -90,11 +89,7 @@ def assert_pass?(*args, **options, &block) 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 diff --git a/lib/trailblazer/test/assertion/suite.rb b/lib/trailblazer/test/assertion/suite.rb index 0d3b795..9963fe3 100644 --- a/lib/trailblazer/test/assertion/suite.rb +++ b/lib/trailblazer/test/assertion/suite.rb @@ -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,