clean up whitespace from project

This commit is contained in:
Nihad Abbasov 2011-11-15 12:34:30 +04:00
parent 415eddaf39
commit 368deb5992
50 changed files with 356 additions and 413 deletions

View file

@ -62,10 +62,10 @@ describe Project do
end
end
describe "updates" do
describe "updates" do
let(:project) { Factory :project }
before do
before do
@issue = Factory :issue,
:project => project,
:author => Factory(:user),
@ -86,10 +86,10 @@ describe Project do
end
end
describe "last_activity" do
describe "last_activity" do
let(:project) { Factory :project }
before do
before do
@note = Factory :note,
:project => project,
:author => Factory(:user)
@ -99,7 +99,7 @@ describe Project do
it { project.last_activity_date.to_s.should == @note.created_at.to_s }
end
describe "fresh commits" do
describe "fresh commits" do
let(:project) { Factory :project }
it { project.fresh_commits(3).count.should == 3 }

View file

@ -15,13 +15,13 @@ describe "Dashboard" do
end
it "should have projects panel" do
within ".project-list" do
within ".project-list" do
page.should have_content(@project.name)
end
end
it "should have news feed" do
within "#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)

View file

@ -73,7 +73,7 @@ describe "Projects" do
end
it "should beahave like activities page" do
within ".project-update" do
within ".project-update" do
page.should have_content("master")
page.should have_content(@project.commit.author.name)
page.should have_content(@project.commit.safe_message)

View file

@ -10,7 +10,6 @@ describe "Tags" do
# end
# end
describe "GET '/tags.json'" do
before do
@project = Factory :project
@ -20,12 +19,9 @@ describe "Tags" do
visit '/tags.json'
end
it "should contains tags" do
page.should have_content('demo1')
end
end
end

View file

@ -7,7 +7,7 @@ describe "Top Panel", :js => true do
before do
visit projects_path
fill_in "search", :with => "Ke"
within ".ui-autocomplete" do
within ".ui-autocomplete" do
find(:xpath, "//a[.=\"Keys\"]").click
end
end
@ -24,7 +24,7 @@ describe "Top Panel", :js => true do
visit project_path(@project)
fill_in "search", :with => "Commi"
within ".ui-autocomplete" do
within ".ui-autocomplete" do
find(:xpath, "//a[.=\"#{@project.code} / Commits\"]").click
end
end