blob: 1ca256f93caca6c96c1f9829878cdfac7d6f9947 (
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
32
33
34
35
36
37
38
39
40
|
require 'spec_helper'
describe "Dashboard" do
before do
@project = Factory :project
@user = User.create(:email => "test917@mail.com",
:name => "John Smith",
:password => "123456",
:password_confirmation => "123456")
@project.add_access(@user, :read, :write)
login_with(@user)
end
describe "GET /dashboard" do
before do
visit dashboard_path
end
it "should be on dashboard page" do
current_path.should == dashboard_path
end
it "should have projects panel" do
page.should have_content(@project.name)
end
end
describe "GET /dashboard/activities" do
before do
visit dashboard_activities_path
end
it "should be on dashboard page" do
current_path.should == dashboard_activities_path
end
it "should have projects panel" do
page.should have_content(@project.name)
end
end
end
|