Skip to content

Commit 9f01362

Browse files
committed
Fix linting
1 parent d947f94 commit 9f01362

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spec/model_methods_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
it 'uses the specified scope' do
99
TestUtil.reset_colors!
1010

11+
# rubocop:disable Rails/SkipsModelValidations
1112
Color.insert_all([
1213
{ name: 'red', short_name: 'r3', hex: 3 },
1314
{ name: 'red', short_name: 'r1', hex: 1 },
1415
{ name: 'purple', short_name: 'p', hex: 4 }
1516
])
16-
17+
# rubocop:enable Rails/SkipsModelValidations
1718
Color.where(name: 'red').reindex!(3, true)
1819
expect(Color.search('').size).to eq(2)
1920

spec/safe_index_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
genres = %w[Legend Fiction Crime].cycle
99
authors = %w[A B C].cycle
1010

11-
Book.insert_all(Array.new(5) { { name: Faker::Book.title, author: authors.next, genre: genres.next } })
11+
Book.insert_all(Array.new(5) { { name: Faker::Book.title, author: authors.next, genre: genres.next } }) # rubocop:disable Rails/SkipsModelValidations
1212
Book.reindex!
1313

1414
expect do

0 commit comments

Comments
 (0)