OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb78247
)
Added a simple test to web_url_without_protocol.
author
Bruno Albuquerque
<bga@bug-br.org.br>
Mon, 20 Jan 2014 13:00:50 +0000
(08:00 -0500)
committer
Bruno Albuquerque
<bga@bug-br.org.br>
Mon, 20 Jan 2014 13:00:50 +0000
(08:00 -0500)
spec/models/project_spec.rb
patch
|
blob
|
history
diff --git
a/spec/models/project_spec.rb
b/spec/models/project_spec.rb
index
8aa4c7f
..
373accf
100644
(file)
--- a/
spec/models/project_spec.rb
+++ b/
spec/models/project_spec.rb
@@
-99,6
+99,11
@@
describe Project do
project.web_url.should == "#{Gitlab.config.gitlab.url}/somewhere"
end
+ it "returns the web URL without the protocol for this repo" do
+ project = Project.new(path: "somewhere")
+ project.web_url_without_protocol.should == "#{Gitlab.config.gitlab.host}/somewhere"
+ end
+
describe "last_activity methods" do
let(:project) { create(:project) }
let(:last_event) { double(created_at: Time.now) }