Skip to content

Commit 0c52187

Browse files
committed
fix tests for latest rubocop
- Adds space after encoding line to appease the `Style/EmptyLineAfterMagicComment` cop - Explicitly disable `Style/NumericLiterals`
1 parent 2f7a81f commit 0c52187

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.rubocop_schema.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Style/ExtraSpacing:
55
AllowForAlignment: false
66

77
Style/NumericLiterals:
8-
Exclude:
9-
- 'db/schema.rb'
8+
Enabled: false
109

1110
Style/SpaceBeforeFirstArg:
1211
Enabled: true

spec/integration/integration_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
def reference_db_schema
2222
<<-RUBY
2323
# encoding: UTF-8
24+
2425
# This file is auto-generated from the current state of the database. Instead
2526
# of editing this file, please use the migrations feature of Active Record to
2627
# incrementally modify your database, and then regenerate this schema definition.

spec/test-app/db/schema.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# encoding: UTF-8
2+
23
# This file is auto-generated from the current state of the database. Instead
34
# of editing this file, please use the migrations feature of Active Record to
45
# incrementally modify your database, and then regenerate this schema definition.

0 commit comments

Comments
 (0)