May I ask the test get of rails to report an error like this?

this is my ruby and rails versions
clipboard.png

require "test_helper"

class SayControllerTest < ActionDispatch::IntegrationTest
  test "should get hello" do
    get say_hello_url
    assert_response :success
  end
  test "should say hello in json" do
    get say_hello_url
    assert_equal "{\"hello\":\"Rails!\"}", @response.body
  end
  test "should say hello in json" do
    get say_hello_url,{"user"=>"Join"}
    assert_equal "{\"hello\":\"Join!\"}", @response.body
  end
end

the third paragraph of code reports an error

Feb.16,2022

Join is followed by an exclamation point and one without

Menu