Renamed oldrev/newrev to before/after

This commit is contained in:
Jeroen van Baarsen 2014-03-06 16:15:19 +01:00
parent 4a251849cf
commit e6ceec9d60
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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) }