summaryrefslogtreecommitdiff
path: root/spec/features/admin/projects_spec.rb
blob: 0c8168aef256ce0362754e642e4bfbbf4a7caf8c (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
require 'spec_helper'

describe "Admin Projects" do
  let(:project) { FactoryGirl.create :project }

  before do
    skip_admin_auth
    login_as :user
  end

  describe "GET /admin/projects" do
    before do
      project
      visit admin_projects_path
    end

    it { page.should have_content "Manage Projects" }
  end

  describe "GET /admin/projects/:id" do
    before do
      visit admin_project_path(project)
    end

    it { page.should have_content "Project info" }
    it { page.should have_content project.name }
  end
end