Skip to content

Commit

Permalink
Fix linter problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Feb 28, 2024
1 parent 50b350f commit a4c1d13
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Style/FrozenStringLiteralComment:
RSpec/MultipleExpectations:
Enabled: false

RSpec/DescribeClass:
Enabled: false

Metrics/BlockLength:
Enabled: true
Exclude:
Expand Down
4 changes: 2 additions & 2 deletions spec/integration/sequel/record_is_created_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
end

it 'does not override after hooks' do
expect(SequelBook).to receive(:new).twice.and_call_original
allow(SequelBook).to receive(:new).and_call_original
SequelBook.create name: 'Steve Jobs', author: 'Walter Isaacson', premium: true, released: true
expect(SequelBook).to have_received(:new).twice
end
end

1 change: 0 additions & 1 deletion spec/integration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'spec_helper'


if defined?(ActiveModel::Serializer)
describe 'SerializedDocument' do
before(:all) do
Expand Down
2 changes: 1 addition & 1 deletion spec/multi_search_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe 'multi-search' do # rubocop:todo RSpec/DescribeClass
describe 'multi-search' do
def reset_indexes
[Book, Color, Product].each do |klass|
klass.delete_all
Expand Down
1 change: 0 additions & 1 deletion spec/support/active_record_classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ class EncodedString < ActiveRecord::Base
end
end
end

2 changes: 1 addition & 1 deletion spec/support/active_record_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
end

def ar_schema
@schema ||= ActiveRecord::Schema.new
@ar_schema ||= ActiveRecord::Schema.new
end
1 change: 0 additions & 1 deletion spec/support/models/animals.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ def ms_id
"dog_#{id}"
end
end

1 change: 0 additions & 1 deletion spec/support/models/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ def public?
released && !premium
end
end

1 change: 0 additions & 1 deletion spec/support/models/color.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ def will_save_change_to_short_name?
false
end
end

2 changes: 0 additions & 2 deletions spec/support/models/fruit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ class Fruit < ActiveRecord::Base
attribute :name
end
end


1 change: 0 additions & 1 deletion spec/support/models/movie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ class Movie < ActiveRecord::Base
typo_tolerance enabled: false
end
end

1 change: 0 additions & 1 deletion spec/support/models/people.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ def will_save_change_to_full_name?
will_save_change_to_first_name? || will_save_change_to_last_name?
end
end

1 change: 0 additions & 1 deletion spec/support/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ class Post < ActiveRecord::Base

class Comment < ActiveRecord::Base
end

1 change: 0 additions & 1 deletion spec/support/models/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ def published?

class Camera < Product
end

1 change: 0 additions & 1 deletion spec/support/models/queued_models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ def should_index?
is_public
end
end

1 change: 0 additions & 1 deletion spec/support/models/restaurant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ class Restaurant < ActiveRecord::Base
pagination max_total_hits: 5
end
end

1 change: 0 additions & 1 deletion spec/support/models/song.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ def public?
released && !premium
end
end

1 change: 0 additions & 1 deletion spec/support/models/vegetable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ class Vegetable < ActiveRecord::Base
attribute :name
end
end

1 change: 0 additions & 1 deletion spec/support/sequel_db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ def sequel_db
end

FileUtils.rm('sequel_data.sqlite3') if File.exist?('sequel_data.sqlite3')

1 change: 0 additions & 1 deletion spec/support/sequel_models/book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ def public?
released && !premium
end
end

0 comments on commit a4c1d13

Please sign in to comment.