Skip to content

Commit

Permalink
Hack to make specs backward compatible
Browse files Browse the repository at this point in the history
We should probably not use override_default_formatter
  • Loading branch information
spuun committed Apr 12, 2024
1 parent 0146dd1 commit 00e9c1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ require "json"
require "../src/amqp-client"

Log.setup_from_env
Spec.override_default_formatter(Spec::VerboseFormatter.new) unless ENV["CI"]?
{% if Spec::CLI.resolve? %}
Spec.cli.override_default_formatter(Spec::VerboseFormatter.new) unless ENV["CI"]?
{% else %}
Spec.override_default_formatter(Spec::VerboseFormatter.new) unless ENV["CI"]?
{% end %}

module TestHelpers
def with_connection(**args, &)
Expand Down

0 comments on commit 00e9c1b

Please sign in to comment.