Renamed oldrev/newrev to before/after
This commit is contained in:
parent
4a251849cf
commit
e6ceec9d60
2 changed files with 4 additions and 4 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue