Commit e6ceec9d authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Renamed oldrev/newrev to before/after

parent 4a251849
...@@ -11,8 +11,8 @@ class GitTagPushService ...@@ -11,8 +11,8 @@ class GitTagPushService
def create_push_data(oldrev, newrev, ref) def create_push_data(oldrev, newrev, ref)
data = { data = {
ref: ref, ref: ref,
oldrev: oldrev, before: oldrev,
newrev: newrev, after: newrev,
user_id: user.id, user_id: user.id,
user_name: user.name, user_name: user.name,
project_id: project.id, project_id: project.id,
......
...@@ -20,8 +20,8 @@ describe GitTagPushService do ...@@ -20,8 +20,8 @@ describe GitTagPushService do
subject { @push_data } subject { @push_data }
it { should include(ref: @ref) } it { should include(ref: @ref) }
it { should include(oldrev: @oldrev) } it { should include(before: @oldrev) }
it { should include(newrev: @newrev) } it { should include(after: @newrev) }
it { should include(user_id: user.id) } it { should include(user_id: user.id) }
it { should include(user_name: user.name) } it { should include(user_name: user.name) }
it { should include(project_id: project.id) } it { should include(project_id: project.id) }
......
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