Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-02 22:51:48 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-02 22:51:48 +0400
commita2eda66b30d737e3ca1a5fc17a7f36416939a41f (patch)
treec9b88d5417436ca854c610d892becff5d340e17b /spec/models
parente00390b377d9264ad87eea30fdee8025f2c18eec (diff)
Disable issues sort. Recent issues on top. Fixed tests
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_hooks_spec.rb2
-rw-r--r--spec/models/project_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_hooks_spec.rb b/spec/models/project_hooks_spec.rb
index 9e2a9df2dbd..fcc969ceba5 100644
--- a/spec/models/project_hooks_spec.rb
+++ b/spec/models/project_hooks_spec.rb
@@ -106,7 +106,7 @@ describe Project, "Hooks" do
it { should include(id: @commit.id) }
it { should include(message: @commit.safe_message) }
it { should include(timestamp: @commit.date.xmlschema) }
- it { should include(url: "http://localhost/#{project.code}/commits/#{@commit.id}") }
+ it { should include(url: "#{Gitlab.config.url}/#{project.code}/commits/#{@commit.id}") }
context "with a author" do
subject { @data[:commits].first[:author] }
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 0c54ae0136a..381fe7592c9 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -46,7 +46,7 @@ describe Project do
it "should return valid url to repo" do
project = Project.new(:path => "somewhere")
- project.url_to_repo.should == "git@localhost:somewhere.git"
+ project.url_to_repo.should == Gitlab.config.ssh_path + "somewhere.git"
end
it "should return path to repo" do