Improve web hook data. Use clonable url in repo info

4-1-stable
Dmitriy Zaporozhets 2012-12-23 01:10:57 +02:00
parent 0af5884bcd
commit 3ff131a747
3 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ module PushObserver
user_name: user.name,
repository: {
name: name,
url: web_url,
url: url_to_repo,
description: description,
homepage: web_url,
},

View File

@ -7,9 +7,9 @@
:user_name => "John Smith",
:repository => {
:name => "Diaspora",
:url => "localhost/diaspora",
:url => "git@localhost/diaspora.git",
:description => "",
:homepage => "localhost/diaspora",
:homepage => "http://localhost/diaspora",
:private => true
},
:commits => [

View File

@ -91,7 +91,7 @@ describe Project, "Hooks" do
subject { @data[:repository] }
it { should include(name: project.name) }
it { should include(url: project.web_url) }
it { should include(url: project.url_to_repo) }
it { should include(description: project.description) }
it { should include(homepage: project.web_url) }
end