spec/gitx/cli/integrate_command_spec.rb in gitx-2.23.0 vs spec/gitx/cli/integrate_command_spec.rb in gitx-2.23.1.ci.174.1
- old
+ new
@@ -82,11 +82,11 @@
allow(cli).to receive(:ask_editor).and_return('description')
expect(executor).to receive(:execute).with('git', 'update').ordered
expect(executor).to receive(:execute).with('git', 'checkout', 'feature-branch').ordered
expect(executor).to receive(:execute).with('git', 'update').ordered
- expect(executor).to receive(:execute).with('git', 'log', 'origin/master...feature-branch', '--reverse', '--no-merges', "--pretty=format:* %B").and_return(changelog).ordered
+ expect(executor).to receive(:execute).with('git', 'log', 'origin/master...feature-branch', '--reverse', '--no-merges', '--pretty=format:* %B').and_return(changelog).ordered
expect(executor).to receive(:execute).with('git', 'fetch', 'origin').ordered
expect(executor).to receive(:execute).with('git', 'branch', '--delete', '--force', 'staging').ordered
expect(executor).to receive(:execute).with('git', 'checkout', 'staging').ordered
expect(executor).to receive(:execute).with('git', 'merge', '--no-ff', '--message', '[gitx] Integrating feature-branch into staging (Pull request #10)', 'feature-branch').ordered
expect(executor).to receive(:execute).with('git', 'push', 'origin', 'HEAD').ordered
@@ -156,10 +156,11 @@
before do
expect(executor).to receive(:execute).with('git', 'update').ordered
expect(executor).to receive(:execute).with('git', 'fetch', 'origin').ordered
expect(executor).to receive(:execute).with('git', 'branch', '--delete', '--force', 'staging').ordered
expect(executor).to receive(:execute).with('git', 'checkout', 'staging').ordered
- expect(executor).to receive(:execute).with('git', 'merge', '--no-ff', '--message', '[gitx] Integrating feature-branch into staging (Pull request #10)', 'feature-branch').and_raise('git merge feature-branch failed').ordered
+ expect(executor).to receive(:execute).with('git', 'merge', '--no-ff', '--message', '[gitx] Integrating feature-branch into staging (Pull request #10)', 'feature-branch')
+ .and_raise('git merge feature-branch failed').ordered
VCR.use_cassette('pull_request_does_exist_with_success_status') do
expect { cli.integrate }.to raise_error(/Merge conflict occurred. Please fix merge conflict and rerun command with --resume feature-branch flag/)
end
end