<commit_before>describe ('recipe show', function() {

  beforeEach(function(){
    jasmine.getFixtures().fixturesPath = 'spec/';
    jasmine.getFixtures().load('index-fake.html');
    var currentRecipe = {
      title: "S'mores Cookies",
      ingredients: [{name: "unsalted butter", quantity: 11, unit: "tablespoons"}, {name: "baking soda", quantity: 1, unit: "teaspoon"}],
      instructions: [{content: "Preheat the oven to 375 degrees. Line baking pans with parchment paper. I used one 11x17 pan and one 9x13 pan but you can really use any sized pans you want."}, {content: "Add the flour mixture to the butter mixer and combine on low speed."}],
      prepTime: "28 minutes",
      yieldNumber: 26,
      yieldUnit: "Servings",
      stars: 4.54385964912281,
      imageUrl: "http://redirect.bigoven.com/pics/rs/640/smores-cookies.jpg",
      id: 208491
    };
    var template = $('#recipe-show').html();
    var output = Mustache.render(template, currentRecipe);
    $('.container').html(output);
    $('span.stars').stars();

    var template = $('#ingredients-template').html();
    var output = Mustache.render(template, {ingredients: currentRecipe.ingredients});
    $('.recipe').append(output);

    var template = $('#instructions-template').html();
    var output = Mustache.render(template, {instructions: currentRecipe.instructions});
    $('.recipe').append(output);
  });

  describe ("true", function() {
    it("should equal true", function() {
      expect(true).toBe(true);
    });
  });

  describe ("recipe show template", function() {
    it("should be in the DOM", function() {
      expect($('#recipe-show')).toBeInDOM();
    });
  });

  describe ("favorite icon", function() {

    it("should be in the DOM", function() {<commit_msg>refactor page rendering in recipespec tests<commit_after>describe ('recipe show', function() {

  beforeEach(function(){
    jasmine.getFixtures().fixturesPath = 'spec/';
    jasmine.getFixtures().load('index-fake.html');
    var currentRecipe = {
      title: "S'mores Cookies",
      ingredients: [{name: "unsalted butter", quantity: 11, unit: "tablespoons"}, {name: "baking soda", quantity: 1, unit: "teaspoon"}],
      instructions: [{content: "Preheat the oven to 375 degrees. Line baking pans with parchment paper. I used one 11x17 pan and one 9x13 pan but you can really use any sized pans you want."}, {content: "Add the flour mixture to the butter mixer and combine on low speed."}],
      prepTime: "28 minutes",
      yieldNumber: 26,
      yieldUnit: "Servings",
      stars: 4.54385964912281,
      imageUrl: "http://redirect.bigoven.com/pics/rs/640/smores-cookies.jpg",
      id: 208491
    };
    renderPage('#recipe-show', '.container', currentRecipe);
    $('span.stars').stars();

    renderAppend('#incredients-template', '.recipe', currentRecipe);
    renderAppend('#instructions-template', '.recipe', currentRecipe)
  });

  describe ("true", function() {
    it("should equal true", function() {
      expect(true).toBe(true);
    });
  });

  describe ("recipe show template", function() {
    it("should be in the DOM", function() {
      expect($('#recipe-show')).toBeInDOM();
    });
  });

  describe ("favorite icon", function() {

    it("should be in the DOM", function() {
{'fraction_non_alphanumeric': 0.1638591117917305, 'fraction_numerical': 0.025114854517611026, 'mean_word_length': 3.712842712842713, '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': '1787632', 'n_tokens_mistral': 1067, 'n_tokens_neox': 961, 'n_words': 278}