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: sites_controller_test.rb
    path of file: ./repos/comfortable-mexican-sofa/test/controllers/comfy/admin/cms
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative "../../../../test_helper"

class Comfy::Admin::Cms::SitesControllerTest < ActionDispatch::Integration
    
  def test_update_failure
    site = comfy_cms_sites(:default)
    r :put, comfy_admin_cms_site_path(id: site), params: { site: {
      hostname: ""
    } }
    assert_response :success
    assert_template :edit
    site.reload
    assert_not_equal "", site.hostname
    assert_equal "Failed to update site", flash[:danger]
  end