Added a simple test to web_url_without_protocol.
This commit is contained in:
parent
fb782476f9
commit
e77694bff3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue