diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-03-06 19:08:51 +0400 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2014-03-06 19:08:51 +0400 |
commit | 4a251849cf0408780f6ee536699c212f8fe7a7be (patch) | |
tree | be865450d3c709468f5697137cfbcbc375107b01 /spec/services/git_tag_push_service_spec.rb | |
parent | f096bd61bda605f2e3631bcd4663ab68c7396989 (diff) |
Added newrev and oldrev to the hook data
Diffstat (limited to 'spec/services/git_tag_push_service_spec.rb')
-rw-r--r-- | spec/services/git_tag_push_service_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/services/git_tag_push_service_spec.rb b/spec/services/git_tag_push_service_spec.rb index aabb9f8f38d..d3f7ca30748 100644 --- a/spec/services/git_tag_push_service_spec.rb +++ b/spec/services/git_tag_push_service_spec.rb @@ -7,17 +7,21 @@ describe GitTagPushService do before do @ref = 'refs/tags/super-tag' + @oldrev = 'b98a310def241a6fd9c9a9a3e7934c48e498fe81' + @newrev = 'b19a04f53caeebf4fe5ec2327cb83e9253dc91bb' end describe 'Git Tag Push Data' do before do - service.execute(project, user, @ref) + service.execute(project, user, @oldrev, @newrev, @ref) @push_data = service.push_data end subject { @push_data } it { should include(ref: @ref) } + it { should include(oldrev: @oldrev) } + it { should include(newrev: @newrev) } it { should include(user_id: user.id) } it { should include(user_name: user.name) } it { should include(project_id: project.id) } @@ -36,7 +40,7 @@ describe GitTagPushService do context "execute web hooks" do it "when pushing tags" do project.should_receive(:execute_hooks) - service.execute(project, user, 'refs/tags/v1.0.0') + service.execute(project, user, 'oldrev', 'newrev', 'refs/tags/v1.0.0') end end end |