Skip to content
Snippets Groups Projects
Commit e77694bf authored by Bruno Albuquerque's avatar Bruno Albuquerque
Browse files

Added a simple test to web_url_without_protocol.

parent fb782476
No related branches found
No related tags found
1 merge request!5958Added support for Go's repository retrieval.
Loading
Loading
@@ -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) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment