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: layouts_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: tru
    
  def test_creation_failure
    assert_no_difference "Comfy::Cms::Layout.count" do
      r :post, comfy_admin_cms_site_layouts_path(site_id: @site), params: { layout: {} }
      assert_response :success
      assert_template :new
      assert_equal "Failed to create layout", flash[:danger]
    end
  end