A Todos Controller Test using Strings than Integers to add Data in Enum Columns

  test "should create todo" do
    assert_difference('Todo.count') do
      post todos_url, params: {
        todo: {
          title: "New Test Todo",
          description: "New test description",
          status: "pending",
          priority: "medium",
          due_date: Date.current
        }
      }, as: :turbo_stream
    end

    assert_response :success
  end