Commit e77694bff3e0867f226be28108b814895d32d354
1 parent
fb782476
Exists in
spb-stable
and in
3 other branches
Added a simple test to web_url_without_protocol.
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
spec/models/project_spec.rb
... | ... | @@ -99,6 +99,11 @@ describe Project do |
99 | 99 | project.web_url.should == "#{Gitlab.config.gitlab.url}/somewhere" |
100 | 100 | end |
101 | 101 | |
102 | + it "returns the web URL without the protocol for this repo" do | |
103 | + project = Project.new(path: "somewhere") | |
104 | + project.web_url_without_protocol.should == "#{Gitlab.config.gitlab.host}/somewhere" | |
105 | + end | |
106 | + | |
102 | 107 | describe "last_activity methods" do |
103 | 108 | let(:project) { create(:project) } |
104 | 109 | let(:last_event) { double(created_at: Time.now) } | ... | ... |