Skip to content

Commit

Permalink
Fixed Layout/SpaceInsideHashLiteralBraces
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbrodie committed Apr 28, 2024
1 parent d1b4af5 commit b584d12
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/jira/jwt_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def make_multipart_request(url, data, headers = {})
def build_jwt_header(url)
jwt = build_jwt(url)

{'Authorization' => "JWT #{jwt}"}
{ 'Authorization' => "JWT #{jwt}" }
end

def build_jwt(url)
Expand Down
4 changes: 2 additions & 2 deletions spec/jira/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@

before(:each) do
stub_request(:get, 'https://localhost:2990/jira/rest/api/2/project')
.with(headers: {"Authorization" => /JWT .+/})
.with(headers: { "Authorization" => /JWT .+/ })
.to_return(status: 200, body: '[]', headers: {})
end

Expand All @@ -250,7 +250,7 @@
context 'with a incorrect jwt key' do
before do
stub_request(:get, 'https://localhost:2990/jira/rest/api/2/project')
.with(headers: {"Authorization" => /JWT .+/})
.with(headers: { "Authorization" => /JWT .+/ })
.to_return(status: 401, body: '[]', headers: {})
end

Expand Down
4 changes: 2 additions & 2 deletions spec/jira/resource/attachment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
default_headers: default_headers_given )
end
let(:merged_headers) do
{"Accept"=>"application/json", "X-Atlassian-Token"=>"nocheck"}.merge(default_headers_given)
{ "Accept"=>"application/json", "X-Atlassian-Token"=>"nocheck" }.merge(default_headers_given)
end

it 'passes the custom headers' do
Expand Down Expand Up @@ -199,7 +199,7 @@
default_headers: default_headers_given )
end
let(:merged_headers) do
{"Accept"=>"application/json", "X-Atlassian-Token"=>"nocheck"}.merge(default_headers_given)
{ "Accept"=>"application/json", "X-Atlassian-Token"=>"nocheck" }.merge(default_headers_given)
end

it 'passes the custom headers' do
Expand Down
2 changes: 1 addition & 1 deletion spec/jira/resource/issue_picker_suggestions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
describe 'relationships' do
subject do
JIRA::Resource::IssuePickerSuggestions.new(client, attrs: {
'sections' => [{ 'id' => 'hs'}, { 'id' => 'cs' }]
'sections' => [{ 'id' => 'hs' }, { 'id' => 'cs' }]
})
end

Expand Down
2 changes: 1 addition & 1 deletion spec/jira/resource/jira_picker_suggestions_issue_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
describe 'relationships' do
subject do
JIRA::Resource::IssuePickerSuggestionsIssue.new(client, attrs: {
'issues' => [{ 'id' => '1'}, { 'id' => '2' }]
'issues' => [{ 'id' => '1' }, { 'id' => '2' }]
})
end

Expand Down
4 changes: 2 additions & 2 deletions spec/jira/resource/sprint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
issue
end
let(:post_issue_input) do
{"issues":[issue.id]}
{ "issues":[issue.id] }
end


Expand Down Expand Up @@ -129,7 +129,7 @@
end
end
let(:post_issue_input) do
{"issues": issue_ids}
{ "issues": issue_ids }
end

describe '#add_issues' do
Expand Down

0 comments on commit b584d12

Please sign in to comment.