Skip to content

Commit

Permalink
Make specs compatible with jq 1.7 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Sep 22, 2023
1 parent 652f98b commit 4f9ef2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion spec/oq_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ describe OQ do

it "should colorize the output with the -C option" do
run_binary(input: SIMPLE_JSON_OBJECT, args: ["-c", "-C", "."]) do |output|
output.should eq %(\e[1;39m{\e[0m\e[34;1m"name"\e[0m\e[1;39m:\e[0m\e[0;32m"Jim"\e[0m\e[1;39m\e[1;39m}\e[0m\n)
output.should start_with "\e"
output.should contain %("name")
output.should contain %("Jim")
output.should end_with "\e[0m\n"
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/processor_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe OQ::Processor do
end

output_io.to_s.should be_empty
error_io.to_s.should eq "parse error: Invalid numeric literal at line 1, column 12\n"
error_io.to_s.should contain "parse error: Invalid numeric literal at line 1, column 12\n"
end

describe "file input" do
Expand Down

0 comments on commit 4f9ef2a

Please sign in to comment.