spec/gitx/cli/release_command_spec.rb in gitx-2.15.0 vs spec/gitx/cli/release_command_spec.rb in gitx-2.16.0.ci.89.1

- old
+ new

@@ -39,11 +39,11 @@ expect(cli).to receive(:yes?).with('Branch status is currently: failure. Proceed with release? (y/n)', :red).and_return(false) allow(cli).to receive(:authorization_token).and_return(authorization_token) expect(cli).to_not receive(:run_cmd).with('git checkout master') expect(cli).to_not receive(:run_cmd).with('git pull origin master') - expect(cli).to_not receive(:run_cmd).with('git merge --no-ff feature-branch') + expect(cli).to_not receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch') expect(cli).to_not receive(:run_cmd).with('git push origin HEAD') VCR.use_cassette('pull_request_does_exist_with_failure_status') do cli.release end @@ -62,11 +62,11 @@ allow(cli).to receive(:authorization_token).and_return(authorization_token) expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with('git checkout master').ordered expect(cli).to receive(:run_cmd).with('git pull origin master').ordered - expect(cli).to receive(:run_cmd).with('git merge --no-ff feature-branch').ordered + expect(cli).to receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch').ordered expect(cli).to receive(:run_cmd).with('git push origin HEAD').ordered expect(cli).to receive(:run_cmd).with('git integrate').ordered VCR.use_cassette('pull_request_does_exist_with_success_status') do cli.release @@ -93,11 +93,11 @@ allow(cli).to receive(:authorization_token).and_return(authorization_token) expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with('git checkout master').ordered expect(cli).to receive(:run_cmd).with('git pull origin master').ordered - expect(cli).to receive(:run_cmd).with('git merge --no-ff feature-branch').ordered + expect(cli).to receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch').ordered expect(cli).to receive(:run_cmd).with('git push origin HEAD').ordered expect(cli).to receive(:run_cmd).with('echo hello').ordered VCR.use_cassette('pull_request_does_exist_with_success_status') do cli.release @@ -116,11 +116,11 @@ allow(cli).to receive(:authorization_token).and_return(authorization_token) expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with('git checkout master').ordered expect(cli).to receive(:run_cmd).with('git pull origin master').ordered - expect(cli).to receive(:run_cmd).with('git merge --no-ff feature-branch').ordered + expect(cli).to receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch').ordered expect(cli).to receive(:run_cmd).with('git push origin HEAD').ordered expect(cli).to receive(:run_cmd).with('git integrate').ordered VCR.use_cassette('pull_request_does_exist_with_success_status') do cli.release 'feature-branch' @@ -154,11 +154,11 @@ expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with("git log master...feature-branch --reverse --no-merges --pretty=format:'* %B'").and_return('2013-01-01 did some stuff').ordered expect(cli).to receive(:run_cmd).with('git checkout master').ordered expect(cli).to receive(:run_cmd).with('git pull origin master').ordered - expect(cli).to receive(:run_cmd).with('git merge --no-ff feature-branch').ordered + expect(cli).to receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch').ordered expect(cli).to receive(:run_cmd).with('git push origin HEAD').ordered expect(cli).to receive(:run_cmd).with('git integrate').ordered stub_request(:post, 'https://api.github.com/repos/wireframe/gitx/pulls').to_return(status: 201, body: new_pull_request.to_json, headers: { 'Content-Type' => 'application/json' }) VCR.use_cassette('pull_request_does_not_exist') do @@ -186,10 +186,10 @@ allow(cli).to receive(:authorization_token).and_return(authorization_token) expect(cli).to receive(:run_cmd).with('git checkout feature-branch').ordered expect(cli).to receive(:run_cmd).with('git checkout master').ordered expect(cli).to receive(:run_cmd).with('git pull origin master').ordered - expect(cli).to receive(:run_cmd).with('git merge --no-ff feature-branch').ordered + expect(cli).to receive(:run_cmd).with('git merge --no-ff -m "[gitx] Releasing feature-branch to master (Pull request #10)" feature-branch').ordered expect(cli).to receive(:run_cmd).with('git push origin HEAD').ordered expect(cli).to receive(:run_cmd).with('git integrate').ordered expect(cli).to receive(:run_cmd).with('git cleanup').ordered VCR.use_cassette('pull_request_does_exist_with_success_status') do