mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Renamed oldrev/newrev to before/after
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user