<commit_before>require 'rails_helper'

RSpec.describe GroupsController, type: :controller do
    describe 'GET groups/:id' do
      let!(:user) { User.create!(name: "Matt", email: "<EMAIL>", password: 'password') }
      let!(:group) { Group.create!(name: 'Grouptastic', admin_id: user.id) }

      before(:each) do
        controller.session[:user_id] = user.id
        get :show, :id => group.id
      end

      it 'Group does not have any hangouts' do
        expect(assigns(:hangout_id)).to be nil
      end
    end
end<commit_msg>Set second groups controller test to pending<commit_after>require 'rails_helper'

RSpec.describe GroupsController, type: :controller do
  describe 'GET groups/:id' do
    let!(:user) { User.create!(name: "Matt", email: "<EMAIL>", password: 'password') }
    let!(:group) { Group.create!(name: 'Grouptastic', admin_id: user.id) }

    before(:each) do
      controller.session[:user_id] = user.id
    end

    it 'Group does not have any hangouts' do
      get :show, :id => group.id
      expect(assigns(:hangout_id)).to be nil
    end

    xit 'Group gets assigned a hangout' do
      hangout = Hangout.create!(creator_id: user.id, group_id: group.id)
      get :show, :id => group.id
      expect(assigns(:hangout_id)).to eq hangout.id
    end
  end
end
{'fraction_non_alphanumeric': 0.13555383423702555, 'fraction_numerical': 0.0, 'mean_word_length': 3.2781456953642385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1777372', 'n_tokens_mistral': 430, 'n_tokens_neox': 416, 'n_words': 117}