Skip to content

Commit 9cbb48c

Browse files
committed
Oh RuboCop...
1 parent 6a447bb commit 9cbb48c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

gemfiles/rack1.gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
# frozen_string_literal: true
12

2-
eval_gemfile("../Gemfile")
3+
eval_gemfile('../Gemfile')
34

45
gem 'rack', '~> 1.0'

gemfiles/rack2-0.gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
# frozen_string_literal: true
12

2-
eval_gemfile("../Gemfile")
3+
eval_gemfile('../Gemfile')
34

45
gem 'rack', '~> 1.0'

spec/grape/middleware/formatter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,15 @@ def to_xml
379379
end
380380

381381
context 'send file' do
382-
let(:file) {double(File)}
382+
let(:file) { double(File) }
383383
let(:file_body) { Grape::ServeFile::FileResponse.new(file) }
384384
let(:app) { ->(_env) { [200, {}, file_body] } }
385385

386386
it 'returns a file response' do
387387
env = { 'PATH_INFO' => '/somewhere', 'HTTP_ACCEPT' => 'application/json' }
388388
status, headers, body = subject.call(env)
389389
expect(status).to be == 200
390-
expect(headers).to be == {"Content-Type"=>"application/json"}
390+
expect(headers).to be == { 'Content-Type' => 'application/json' }
391391
expect(body).to be file
392392
end
393393
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
config.before(:each) { Grape::Util::InheritableSetting.reset_global! }
2828

2929
# Enable flags like --only-failures and --next-failure
30-
config.example_status_persistence_file_path = ".rspec_status"
30+
config.example_status_persistence_file_path = '.rspec_status'
3131
end
3232

3333
require 'coveralls'

0 commit comments

Comments
 (0)