Before

…lines 1–625 unchanged (625 lines)
626 "test_skip_with_messages: skipped - Not maintained, Archived upstream\n",
627 ).to_stdout
628 .and not_to_output.to_stderr
629
630 expect do
631 skip_conditions.print_skip_information(
632 formula: "test_error_with_messages",
633 status: "error",
634 messages: ["URL could not be fetched", "GitHub API rate limit exceeded"],
635 )
636 end.to output(
637 "test_error_with_messages: URL could not be fetched, GitHub API rate limit exceeded\n",
638 ).to_stdout
639 .and not_to_output.to_stderr
640 end
641 end
642
643 context "when the cask is deprecated without a `livecheck` block" do
644 it "prints skip information" do
645 expect { skip_conditions.print_skip_information(status_hashes[:cask][:deprecated]) }
…lines 646–696 unchanged (51 lines)

After

…lines 1–624 unchanged (624 lines)
625 end.to output(
626 "test_skip_with_messages: skipped - Not maintained, Archived upstream\n",
627 ).to_stdout
628 .and not_to_output.to_stderr
629
630 expect do
631 skip_conditions.print_skip_information(status_hashes[:formula][:error_with_messages])
632 end.to output(
633 "test_error_with_messages: First error; Second error\n",
634 ).to_stdout.and not_to_output.to_stderr
635 end
636 end
637
638 context "when the cask is deprecated without a `livecheck` block" do
639 it "prints skip information" do
640 expect { skip_conditions.print_skip_information(status_hashes[:cask][:deprecated]) }
…lines 641–691 unchanged (51 lines)

Before

program
comment "# frozen_string_literal: true"
call
identifier "require"
argument_list
string
" "\""
string_content "livecheck/livecheck"
" "\""
call
identifier "require"
argument_list
string
" "\""
string_content "livecheck/skip_conditions"
" "\""
call
constant "RSpec"
. "."
identifier "describe"
argument_list
scope_resolution
scope_resolution
constant "Homebrew"
:: "::"
constant "Livecheck"
:: "::"
constant "SkipConditions"
do_block
do "do"
body_statement
call
identifier "subject"
argument_list
( "("
simple_symbol ":skip_conditions"
) ")"
block
{ "{"
block_body
identifier "described_class"
} "}"
call (+493 nodes collapsed)
call (+682 nodes collapsed)
call (+669 nodes collapsed)
call (+1020 nodes collapsed)
call (+1043 nodes collapsed)
call
identifier "describe"
argument_list
string
" "\""
string_content "::print_skip_information"
" "\""
do_block
do "do"
body_statement
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call
identifier "context"
argument_list
string
" "\""
string_content "when a formula has a `livecheck` block containing `skip`"
" "\""
do_block
do "do"
body_statement
call
identifier "it"
argument_list
string
" "\""
string_content "prints skip information"
" "\""
do_block
do "do"
body_statement
call (+47 nodes collapsed)
call (+47 nodes collapsed)
call (+71 nodes collapsed)
call
call
identifier "expect"
do_block
do "do"
body_statement
call
identifier "skip_conditions"
. "."
identifier "print_skip_information"
argument_list
( "("
pair
hash_key_symbol "formula"
: ":"
string
" "\""
string_content "test_error_with_messages"
" "\""
, ","
pair
hash_key_symbol "status"
: ":"
string
" "\""
string_content "error"
" "\""
, ","
pair
hash_key_symbol "messages"
: ":"
array
[ "["
string
" "\""
string_content "URL could not be fetched"
" "\""
, ","
string
" "\""
string_content "GitHub API rate limit exceeded"
" "\""
] "]"
, ","
) ")"
end "end"
. "."
identifier "to"
argument_list
call
call
call
identifier "output"
argument_list
( "("
string
" "\""
string_content "test_error_with_messages: URL could not be fetched, GitHub A"...
escape_sequence "\\n"
" "\""
, ","
) ")"
. "."
identifier "to_stdout"
. "."
identifier "and"
argument_list
call
identifier "not_to_output"
. "."
identifier "to_stderr"
end "end"
end "end"
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+116 nodes collapsed)
call (+54 nodes collapsed)
end "end"
end "end"

After

program
comment "# frozen_string_literal: true"
call
identifier "require"
argument_list
string
" "\""
string_content "livecheck/livecheck"
" "\""
call
identifier "require"
argument_list
string
" "\""
string_content "livecheck/skip_conditions"
" "\""
call
constant "RSpec"
. "."
identifier "describe"
argument_list
scope_resolution
scope_resolution
constant "Homebrew"
:: "::"
constant "Livecheck"
:: "::"
constant "SkipConditions"
do_block
do "do"
body_statement
call
identifier "subject"
argument_list
( "("
simple_symbol ":skip_conditions"
) ")"
block
{ "{"
block_body
identifier "described_class"
} "}"
call (+493 nodes collapsed)
call (+682 nodes collapsed)
call (+669 nodes collapsed)
call (+1020 nodes collapsed)
call (+1043 nodes collapsed)
call
identifier "describe"
argument_list
string
" "\""
string_content "::print_skip_information"
" "\""
do_block
do "do"
body_statement
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call
identifier "context"
argument_list
string
" "\""
string_content "when a formula has a `livecheck` block containing `skip`"
" "\""
do_block
do "do"
body_statement
call
identifier "it"
argument_list
string
" "\""
string_content "prints skip information"
" "\""
do_block
do "do"
body_statement
call (+47 nodes collapsed)
call (+47 nodes collapsed)
call (+71 nodes collapsed)
call
call
identifier "expect"
do_block
do "do"
body_statement
call
identifier "skip_conditions"
. "."
identifier "print_skip_information"
argument_list
( "("
element_reference
element_reference
identifier "status_hashes"
[ "["
simple_symbol ":formula"
] "]"
[ "["
simple_symbol ":error_with_messages"
] "]"
) ")"
end "end"
. "."
identifier "to"
argument_list
call
call
call
identifier "output"
argument_list
( "("
string
" "\""
string_content "test_error_with_messages: First error; Second error"
escape_sequence "\\n"
" "\""
, ","
) ")"
. "."
identifier "to_stdout"
. "."
identifier "and"
argument_list
call
identifier "not_to_output"
. "."
identifier "to_stderr"
end "end"
end "end"
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+69 nodes collapsed)
call (+116 nodes collapsed)
call (+54 nodes collapsed)
end "end"
end "end"