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: boolean_test.rb
    path of file: ./repos/search_cop/test
    
    the code of the file until where you have to start completion: require File.expand_path("test_helper", __dir__)

class BooleanTest < SearchCop::TestCase
  def test_mapping
    product = creat
    
  def test_mapping
    product = create(:product, available: true)

    assert_includes Product.search("available: 1"), product
    assert_includes Product.search("available: true"), product
    assert_includes Product.search("available: yes"), product

    product = create(:product, available: false)

    assert_includes Product.search("available: 0"), product
    assert_includes Product.search("available: false"), product
    assert_includes Product.search("available: no"), product
  end