You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: users_test.rb
    path of file: ./repos/railsdevs.com/test/integration
    
    the code of the file until where you have to start completion: require "test_helper"

class UsersTest < ActionDispatch::IntegrationTest
  test "signing in with a devel
    
  def register_new_user
    assert_changes "User.count", 1 do
      post user_registration_path(user: {
        email: "referred@example.com",
        password: "password",
        password_confirmation: "password"
      })
    end

    user = User.find_by(email: "referred@example.com")
    user.confirm
    user
  end