Commit e6ceec9d60b9fe5eaec8faf777307f39bd4b1fa3
1 parent
4a251849
Exists in
spb-stable
and in
3 other branches
Renamed oldrev/newrev to before/after
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
app/services/git_tag_push_service.rb
... | ... | @@ -11,8 +11,8 @@ class GitTagPushService |
11 | 11 | def create_push_data(oldrev, newrev, ref) |
12 | 12 | data = { |
13 | 13 | ref: ref, |
14 | - oldrev: oldrev, | |
15 | - newrev: newrev, | |
14 | + before: oldrev, | |
15 | + after: newrev, | |
16 | 16 | user_id: user.id, |
17 | 17 | user_name: user.name, |
18 | 18 | project_id: project.id, | ... | ... |
spec/services/git_tag_push_service_spec.rb
... | ... | @@ -20,8 +20,8 @@ describe GitTagPushService do |
20 | 20 | subject { @push_data } |
21 | 21 | |
22 | 22 | it { should include(ref: @ref) } |
23 | - it { should include(oldrev: @oldrev) } | |
24 | - it { should include(newrev: @newrev) } | |
23 | + it { should include(before: @oldrev) } | |
24 | + it { should include(after: @newrev) } | |
25 | 25 | it { should include(user_id: user.id) } |
26 | 26 | it { should include(user_name: user.name) } |
27 | 27 | it { should include(project_id: project.id) } | ... | ... |