Non-interactive AWS install by running a single script.
Merge branch 'master' into non-interactive-aws-install Conflicts: doc/installation.md Fix merge mess in installation.md
This commit is contained in:
parent
eae41ad1df
commit
b80dd3d242
215 changed files with 3829 additions and 3348 deletions
26
spec/helpers/application_helper_spec.rb
Normal file
26
spec/helpers/application_helper_spec.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe ApplicationHelper do
|
||||
describe "gravatar_icon" do
|
||||
let(:user_email) { 'user@email.com' }
|
||||
|
||||
it "should return a generic avatar path when Gravatar is disabled" do
|
||||
Gitlab.config.stub(:disable_gravatar?).and_return(true)
|
||||
gravatar_icon(user_email).should == 'no_avatar.png'
|
||||
end
|
||||
|
||||
it "should return a generic avatar path when email is blank" do
|
||||
gravatar_icon('').should == 'no_avatar.png'
|
||||
end
|
||||
|
||||
it "should use SSL when appropriate" do
|
||||
stub!(:request).and_return(double(:ssl? => true))
|
||||
gravatar_icon(user_email).should match('https://secure.gravatar.com')
|
||||
end
|
||||
|
||||
it "should accept a custom size" do
|
||||
stub!(:request).and_return(double(:ssl? => false))
|
||||
gravatar_icon(user_email, 64).should match(/\?s=64/)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -2,7 +2,7 @@ require "spec_helper"
|
|||
|
||||
describe GitlabMarkdownHelper do
|
||||
before do
|
||||
@project = Project.find_by_path("gitlabhq") || Factory(:project)
|
||||
@project = Factory(:project)
|
||||
@commit = @project.repo.commits.first.parents.first
|
||||
@commit = CommitDecorator.decorate(Commit.new(@commit))
|
||||
@other_project = Factory :project, path: "OtherPath", code: "OtherCode"
|
||||
|
@ -157,7 +157,7 @@ describe GitlabMarkdownHelper do
|
|||
gfm("Let @#{user.name} fix the *mess* in #{@commit.id}").should == "Let #{link_to "@#{user.name}", project_team_member_path(@project, member), class: "gfm gfm-team_member "} fix the *mess* in #{link_to @commit.id, project_commit_path(@project, id: @commit.id), title: "Commit: #{@commit.author_name} - #{@commit.title}", class: "gfm gfm-commit "}"
|
||||
end
|
||||
|
||||
it "should not trip over other stuff", focus: true do
|
||||
it "should not trip over other stuff" do
|
||||
gfm("_Please_ *stop* 'helping' and all the other b*$#%' you do.").should == "_Please_ *stop* 'helping' and all the other b*$#%' you do."
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue