diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-21 14:27:21 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-21 14:27:21 +0400 |
commit | 5f9d90e2186c373d336794fa336496652a638366 (patch) | |
tree | d63882f251e040a19179f77b90562d90bc4bac35 /spec | |
parent | afd2999373fe1a6bdc611ab4a14e3e81d2f7350d (diff) | |
parent | e77694bff3e0867f226be28108b814895d32d354 (diff) |
Merge pull request #5958 from brunoga/go-repository-fetch
Added support for Go's repository retrieval.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 8aa4c7fed1a..373accfe412 100644 --- 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) } |