Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dashboard_spec.rb « requests « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b38630fe19388e803c6c849d3f1d651e62af9e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'spec_helper'

describe "Dashboard" do
  before { login_as :user }

  describe "GET /dashboard" do
    before do
      @project = Factory :project
      @project.add_access(@user, :read, :write)
      visit dashboard_path
    end

    it "should be on dashboard page" do
      current_path.should == dashboard_path
    end

    it "should have projects panel" do
      within ".project-list"  do
        page.should have_content(@project.name)
      end
    end

    it "should have news feed" do
      within "#news-feed"  do
        page.should have_content("master")
        page.should have_content(@project.commit.author.name)
        page.should have_content(@project.commit.safe_message)
      end
    end
  end
end