<commit_before>require 'rails_helper'

describe "Recipe" do
  specify "I can search for a recipe by its ingredients" do
    tofu = Ingredient.create(name: "Tofu")
    pb = Ingredient.create(name: "Peanut Butter") # TODO: drop this later
    stir_fry = Recipe.create(title: "Stir fry")
    stir_fry.add_ingredient(tofu, { unit: "cup", amount: 1 })
    pbj = Recipe.create(title: "PB&J") # TODO: drop this later

    search_results = Recipe.with_ingredient_named("Tofu")

    expect( search_results ).to include( stir_fry )
    expect( search_results ).to_not include( pbj )
  end
end<commit_msg>Drop red herrings from test<commit_after>require 'rails_helper'

describe "Recipe" do
  specify "I can search for a recipe by its ingredients" do
    tofu = Ingredient.create(name: "Tofu")
    stir_fry = Recipe.create(title: "Stir fry")
    stir_fry.add_ingredient(tofu, { unit: "cup", amount: 1 })

    search_results = Recipe.with_ingredient_named("Tofu")

    expect( search_results ).to include( stir_fry )
  end
end
{'fraction_non_alphanumeric': 0.11242603550295859, 'fraction_numerical': 0.0019723865877712033, 'mean_word_length': 4.259067357512953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7135253', 'n_tokens_mistral': 365, 'n_tokens_neox': 357, 'n_words': 97}