gitlabhq/spec/requests/dashboard_spec.rb

41 lines
1 KiB
Ruby
Raw Normal View History

2011-11-02 22:14:03 +02:00
require 'spec_helper'
2012-01-30 00:43:14 +02:00
__END__
# Disabled for now
2011-11-02 22:14:03 +02:00
describe "Dashboard" do
2011-12-25 20:06:18 +02:00
before do
@project = Factory :project
2011-12-28 09:07:40 +02:00
@user = User.create(:email => "test917@mail.com",
:name => "John Smith",
:password => "123456",
:password_confirmation => "123456")
@project.add_access(@user, :read, :write)
login_with(@user)
2011-12-25 20:06:18 +02:00
end
2011-11-02 22:14:03 +02:00
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
2011-11-15 12:34:30 +04:00
within ".project-list" do
2011-11-02 22:14:03 +02:00
page.should have_content(@project.name)
end
end
2011-11-15 12:34:30 +04:00
2011-12-28 09:08:50 +02:00
# Temporary disabled cause of travis
# TODO: fix or rewrite
#it "should have news feed" do
#within "#news-feed" do
#page.should have_content("commit")
#page.should have_content(@project.commit.author.name)
#page.should have_content(@project.commit.safe_message)
#end
#end
2011-11-02 22:14:03 +02:00
end
end