Skip to content

Commit ae43c86

Browse files
committed
Fix Rubocop offenses
1 parent 9f62227 commit ae43c86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: spec/features/swagger_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
visit '/swagger'
2424
end
2525
it 'adds headers' do
26-
headers = page.evaluate_script("swaggerUi.api.clientAuthorizations")["authz"]
27-
expect(headers.select { |key, value| key.to_s.match(/^header/)}).not_to be_blank
28-
expect(headers.fetch("header_0",{}).fetch('name',{})).to eq GrapeSwaggerRails.options.headers.keys.first
26+
headers = page.evaluate_script('swaggerUi.api.clientAuthorizations')['authz']
27+
expect(headers.select { |key| key.to_s.match(/^header/) }).not_to be_blank
28+
expect(headers.fetch('header_0', {}).fetch('name', {})).to eq GrapeSwaggerRails.options.headers.keys.first
2929
find('#endpointListTogger_headers', visible: true).click
3030
first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click
3131
click_button 'Try it out!'

0 commit comments

Comments
 (0)