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: link_to_href_test.rb
    path of file: ./repos/spektr/test/spektr/checks
    
    the code of the file until where you have to start completion: require "test_helper"

class LinkToHrefTest < M
    
  def test_it_fails_with_a_user_supplied_value
    code = <<-CODE
      <%= link_to "Hello", params[:blog] %>
      <%= link_to "Hello".html_safe, params[:blog] %>
      link_to "\#{inline_svg_tag('email.svg', aria_hidden: true, class: 'crayons-icon', title: 'email')}Sign up with Email".html_safe,
                request.params.merge(state: "email_signup").except("i"),
                class: "crayons-btn crayons-btn--l crayons-btn--brand-email crayons-btn--icon-left whitespace-nowrap",
                data: { no_instant: "" }
    CODE
    app = Spektr::App.new(checks: [Spektr::Checks::LinkToHref])
    view = Spektr::Targets::View.new("index.html.erb", code)
    check = Spektr::Checks::LinkToHref.new(app, view)
    check.run
    assert_equal 2, app.warnings.size
  end