Commit e77694bff3e0867f226be28108b814895d32d354

Authored by Bruno Albuquerque
1 parent fb782476

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,6 +99,11 @@ describe Project do
99 project.web_url.should == "#{Gitlab.config.gitlab.url}/somewhere" 99 project.web_url.should == "#{Gitlab.config.gitlab.url}/somewhere"
100 end 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 describe "last_activity methods" do 107 describe "last_activity methods" do
103 let(:project) { create(:project) } 108 let(:project) { create(:project) }
104 let(:last_event) { double(created_at: Time.now) } 109 let(:last_event) { double(created_at: Time.now) }