Disable issues sort. Recent issues on top. Fixed tests
This commit is contained in:
parent
e00390b377
commit
a2eda66b30
12 changed files with 29 additions and 47 deletions
|
@ -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] }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue