spec/gitx/cli/release_command_spec.rb in gitx-2.13.2 vs spec/gitx/cli/release_command_spec.rb in gitx-2.13.3
- old
+ new
@@ -126,10 +126,10 @@
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 push origin HEAD').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'})
+ 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
cli.release
end
end
it 'creates pull request on github' do