<commit_before>require 'spec_helper'

describe "Projects" do
  before do
    login_as :user
    @project = FactoryGirl.create :project
  end

  describe "GET /projects", js: true do
    before do
      visit projects_path
    end

    it { page.should have_content @project.name }
  end

  describe "GET /projects/:id" do
    before do
      visit project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'All builds' }
  end

  describe "GET /projects/:id/edit" do
    before do
      visit edit_project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Build Schedule' }
  end

  describe "GET /projects/:id/charts" do
    before do
      visit project_chart_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Builds duration chart for last 30 builds' }
  end

  describe "GET /projects/:id/charts/builds" do
    before do
      visit project_chart_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Builds chart for last week' }
    it { page.should have_content 'Builds chart for last month' }
    it { page.should have_content 'Builds chart for last year' }
  end

  describe "GET /projects/:id/details" do
    before do
      visit integration_project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Integration with GitLab' }
  end
end<commit_msg>take this, travis!<commit_after>require 'spec_helper'

describe "Projects" do
  before do
    login_as :user
    @project = FactoryGirl.create :project
  end

  describe "GET /projects", js: true do
    before do
      visit projects_path
    end

    it { page.should have_content @project.name }
  end

  describe "GET /projects/:id" do
    before do
      visit project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'All builds' }
  end

  describe "GET /projects/:id/edit" do
    before do
      visit edit_project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Build Schedule' }
  end

  describe "GET /projects/:id/charts" do
    before do
      visit project_chart_path(@project, 'build_times')
    end

    it { page.should have_content 'Overall' }
    it { page.should have_content 'Build duration in seconds for last 30 builds' }
  end

  describe "GET /projects/:id/charts/builds" do
    before do
      visit project_chart_path(@project, 'builds')
    end

    it { page.should have_content 'Overall' }
    it { page.should have_content 'Builds chart for last week' }
    it { page.should have_content 'Builds chart for last month' }
    it { page.should have_content 'Builds chart for last year' }
  end

  describe "GET /projects/:id/details" do
    before do
      visit integration_project_path(@project)
    end

    it { page.should have_content @project.name }
    it { page.should have_content 'Integration with GitLab' }
  end
end
{'fraction_non_alphanumeric': 0.08386683738796415, 'fraction_numerical': 0.0012804097311139564, 'mean_word_length': 2.9160401002506267, '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': '7224349', 'n_tokens_mistral': 977, 'n_tokens_neox': 946, 'n_words': 304}