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