Skip to content

Commit 11ead79

Browse files
author
Awesome Code
committed
Auto corrected by following Lint Ruby Layout/ClosingHeredocIndentation
1 parent 315330f commit 11ead79

6 files changed

+14
-14
lines changed

spec/rails/add_application_job_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
let(:test_rewritten_content) { <<~EOS }
1212
class ApplicationJob < ActiveJob::Base
1313
end
14-
EOS
14+
EOS
1515

1616
include_examples 'convertable'
1717
end
@@ -21,12 +21,12 @@ class ApplicationJob < ActiveJob::Base
2121
let(:test_content) { <<~EOS }
2222
class PostJob < ActiveJob::Base
2323
end
24-
EOS
24+
EOS
2525

2626
let(:test_rewritten_content) { <<~EOS }
2727
class PostJob < ApplicationJob
2828
end
29-
EOS
29+
EOS
3030

3131
include_examples 'convertable'
3232
end

spec/rails/add_application_record_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class ApplicationRecord < ActiveRecord::Base
1313
self.abstract_class = true
1414
end
15-
EOS
15+
EOS
1616

1717
include_examples 'convertable'
1818
end
@@ -22,12 +22,12 @@ class ApplicationRecord < ActiveRecord::Base
2222
let(:test_content) { <<~EOS }
2323
class Post < ActiveRecord::Base
2424
end
25-
EOS
25+
EOS
2626

2727
let(:test_rewritten_content) { <<~EOS }
2828
class Post < ApplicationRecord
2929
end
30-
EOS
30+
EOS
3131

3232
include_examples 'convertable'
3333
end

spec/rails/convert_active_record_dirty_5_0_to_5_1_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
t.timestamps
1515
end
1616
end
17-
EOS
17+
EOS
1818
let(:test_content) { <<~EOS }
1919
class Post < ActiveRecord::Base
2020
before_create :call_before_create
@@ -36,7 +36,7 @@ def call_after_create
3636
end
3737
end
3838
end
39-
EOS
39+
EOS
4040
let(:test_rewritten_content) { <<~EOS }
4141
class Post < ActiveRecord::Base
4242
before_create :call_before_create
@@ -58,7 +58,7 @@ def call_after_create
5858
end
5959
end
6060
end
61-
EOS
61+
EOS
6262

6363
before do
6464
FakeFS() do

spec/rails/convert_render_text_to_render_plain_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def bar
1515
render text: 'Not OK', status: 403
1616
end
1717
end
18-
EOS
18+
EOS
1919
let(:test_rewritten_content) { <<~EOS }
2020
class PostsController < ApplicationController
2121
def foo
@@ -26,7 +26,7 @@ def bar
2626
render plain: 'Not OK', status: 403
2727
end
2828
end
29-
EOS
29+
EOS
3030

3131
include_examples 'convertable'
3232
end

spec/rails/upgrade_3_0_to_3_1_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
ActiveSupport.on_load(:active_record) do
7373
self.include_root_in_json = false
7474
end
75-
EOS
75+
EOS
7676

7777
let(:session_store_content) {
7878
"

spec/ruby/new_2_2_hash_syntax_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
{ foo_key: 'foo_value', bar_key: 42, "baz-key" => true }
1111
{ :"foo-#{key}" => 'foo_value', :"bar-key" => 42, :"a\tb" => false, :"c'd" => nil }
1212
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
13-
EOS
13+
EOS
1414

1515
let(:test_rewritten_content) { <<~'EOS' }
1616
{ foo: 'bar', 'foo' => 'bar' }
1717
{ key1: 'value1', key2: 'value2' }
1818
{ foo_key: 'foo_value', bar_key: 42, "baz-key" => true }
1919
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
2020
{ "foo-#{key}": 'foo_value', 'bar-key': 42, "a\tb": false, "c'd": nil }
21-
EOS
21+
EOS
2222

2323
before do
2424
load_sub_snippets(%w[ruby/new_1_9_hash_syntax])

0 commit comments

Comments
 (0)