Commit d0dc169b authored by Tiago Botelho's avatar Tiago Botelho

Adds changelog item and bumps the version

parent 51ea7adb
v6.0.3
- Print new project information in post-receive
v6.0.2 v6.0.2
- Use grpc-go 1.9.1 (!184) - Use grpc-go 1.9.1 (!184)
- Update gitaly-proto and gitaly libs (!185) - Update gitaly-proto and gitaly libs (!185)
......
...@@ -62,16 +62,7 @@ describe GitlabPostReceive do ...@@ -62,16 +62,7 @@ describe GitlabPostReceive do
end end
context 'when redirected message available' do context 'when redirected message available' do
let(:message) do let(:message) { "This is a redirected message" }
<<~MSG
Project 'foo/bar' was moved to 'foo/baz'.
Please update your Git remote:
git remote set-url origin http://localhost:3000/foo/baz.git
MSG
end
let(:response) do let(:response) do
{ {
'reference_counter_decreased' => true, 'reference_counter_decreased' => true,
...@@ -86,20 +77,7 @@ describe GitlabPostReceive do ...@@ -86,20 +77,7 @@ describe GitlabPostReceive do
end end
context 'when project created message is available' do context 'when project created message is available' do
let(:message) do let(:message) { "This is a created project message" }
<<~MSG
The private project foo/bar was successfully created.
To configure the remote, run:
git remote add origin http://localhost:3000/foo/bar.git
To view the project, visit:
http://localhost:3000/foo/bar
MSG
end
let(:response) do let(:response) do
{ {
'reference_counter_decreased' => true, 'reference_counter_decreased' => true,
...@@ -163,29 +141,10 @@ describe GitlabPostReceive do ...@@ -163,29 +141,10 @@ describe GitlabPostReceive do
end end
def assert_redirected_message_printed(gitlab_post_receive) def assert_redirected_message_printed(gitlab_post_receive)
message = <<~MSG expect(gitlab_post_receive).to receive(:puts).with("This is a redirected message")
Project 'foo/bar' was moved to 'foo/baz'.
Please update your Git remote:
git remote set-url origin http://localhost:3000/foo/baz.git
MSG
expect(gitlab_post_receive).to receive(:puts).with(message).ordered
end end
def assert_project_created_message_printed(gitlab_post_receive) def assert_project_created_message_printed(gitlab_post_receive)
message = <<~MSG expect(gitlab_post_receive).to receive(:puts).with("This is a created project message")
The private project foo/bar was successfully created.
To configure the remote, run:
git remote add origin http://localhost:3000/foo/bar.git
To view the project, visit:
http://localhost:3000/foo/bar
MSG
expect(gitlab_post_receive).to receive(:puts).with(message).ordered
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment