<commit_before>require 'rails_helper'

  feature "Project information" do
    background do
      @current_user = FactoryGirl.create(:user)
      login_as @current_user
    end

    scenario "Go on project site" do
      visit @project
      expect(page).to have_content('Fachgebiet')
      expect(page).to have_content('Beauftragter des Fachgebiets')
      expect(page).to have_content('Sichtbarkeit')
      expect(page).to have_content('Teamleiter')
    end
end<commit_msg>Fix acceptance tests<commit_after>require 'rails_helper'

  feature "Project information" do
    background do
      user = FactoryGirl.create(:user)
      chair = FactoryGirl.create(:chair)
      representative = FactoryGirl.create(:chair_representative, user_id:user.id, chair_id: chair.id).user
      @current_user = FactoryGirl.create(:user, language: 'de')
      login_as @current_user
      @project = FactoryGirl.create(:project, chair: representative.chair)

    end

    scenario "Go on project site" do
      visit project_path(@project)
      expect(page).to have_content('Fachgebiet')
      expect(page).to have_content('Beauftragter des Fachgebiets')
      expect(page).to have_content('Sichtbarkeit')
      expect(page).to have_content('Teamleiter')
    end
end
{'fraction_non_alphanumeric': 0.1016, 'fraction_numerical': 0.0, 'mean_word_length': 3.9058823529411764, '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': '4148502', 'n_tokens_mistral': 375, 'n_tokens_neox': 369, 'n_words': 82}