dashboard
This commit is contained in:
parent
83c1194d52
commit
020e1a8eee
7 changed files with 115 additions and 22 deletions
30
spec/requests/dashboard_spec.rb
Normal file
30
spec/requests/dashboard_spec.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
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(@project.commit.author.name)
|
||||
page.should have_content(@project.commit.safe_message)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -105,11 +105,6 @@ describe "Issues" do
|
|||
Notify.should_not_receive(:new_issue_email)
|
||||
click_button "Save"
|
||||
end
|
||||
|
||||
it "should send valid email to user with email & password" do
|
||||
click_button "Save"
|
||||
ActionMailer::Base.deliveries.last.should be_nil
|
||||
end
|
||||
end
|
||||
|
||||
describe 'assign to other' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue