Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 9ab1168

Browse files
JT ArchieJT Archie
JT Archie
authored and
JT Archie
committed
fix formmating
1 parent 0f06d79 commit 9ab1168

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: spec/commands/check_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ def stub_json(uri, body)
187187
end
188188
end
189189

190-
context 'and `disallow_forks` is set to true' do
191-
it 'returns the most recently updated internal pull request' do
190+
context 'and `disallow_forks` is set to true' do
191+
it 'returns the most recently updated internal pull request' do
192192
stub_json('https://api.github.com:443/repos/jtarchie/test/statuses/abcdef', [])
193193

194-
expect(check('source' => { 'repo' => 'jtarchie/test', 'disable_forks' => true })).to eq [{ 'ref' => 'abcdef', 'pr' => '1' }]
195-
end
196-
end
194+
expect(check('source' => { 'repo' => 'jtarchie/test', 'disable_forks' => true })).to eq [{ 'ref' => 'abcdef', 'pr' => '1' }]
195+
end
196+
end
197197
end
198198
end
199199
end

Diff for: spec/commands/out_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def stub_json(method, uri, body)
7474
stub_request(:put, 'https://api.github.com/repos/jtarchie/test/pulls/merge')
7575
.to_return(status: 405)
7676

77-
expect {
77+
expect do
7878
put('params' => { 'status' => 'success', 'merge' => { 'method' => 'merge' }, 'path' => 'resource' }, 'source' => { 'repo' => 'jtarchie/test' })
79-
}.to raise_error Octokit::MethodNotAllowed
79+
end.to raise_error Octokit::MethodNotAllowed
8080
end
8181
end
8282

0 commit comments

Comments
 (0)