diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 936a6391..64b6b930 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -114,9 +114,7 @@ RSpec/ExpectInHook: # Include: **/*_spec*rb*, **/spec/**/* RSpec/FilePath: Exclude: - - 'spec/helpers/author_helper_spec.rb' - 'spec/lib/transforms_spec.rb' - - 'spec/models/article/factory_spec.rb' # Configuration parameters: AssignmentOnly. RSpec/InstanceVariable: @@ -174,6 +172,12 @@ RSpec/ScatteredSetup: Exclude: - 'spec/controllers/admin/articles_controller_spec.rb' +# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata. +# Include: **/*_spec.rb +RSpec/SpecFilePathFormat: + Exclude: + - 'spec/lib/transforms_spec.rb' + RSpec/StubbedMock: Exclude: - 'spec/controllers/admin/notes_controller_spec.rb' diff --git a/publify_core.gemspec b/publify_core.gemspec index 18021342..ff4bbedf 100644 --- a/publify_core.gemspec +++ b/publify_core.gemspec @@ -61,7 +61,7 @@ Gem::Specification.new do |s| s.add_development_dependency "rubocop-factory_bot", "~> 2.24.0" s.add_development_dependency "rubocop-performance", "~> 1.19.0" s.add_development_dependency "rubocop-rails", "~> 2.20.2" - s.add_development_dependency "rubocop-rspec", "~> 2.23.2" + s.add_development_dependency "rubocop-rspec", "~> 2.24.1" s.add_development_dependency "shoulda-matchers", "~> 5.3" s.add_development_dependency "simplecov", "~> 0.22.0" s.add_development_dependency "sqlite3", "~> 1.6" diff --git a/spec/helpers/author_helper_spec.rb b/spec/helpers/authors_helper_spec.rb similarity index 100% rename from spec/helpers/author_helper_spec.rb rename to spec/helpers/authors_helper_spec.rb diff --git a/spec/models/article/factory_spec.rb b/spec/models/article/factory_spec.rb index 9839b7ed..eb426b6a 100644 --- a/spec/models/article/factory_spec.rb +++ b/spec/models/article/factory_spec.rb @@ -2,10 +2,10 @@ require "rails_helper" -RSpec.describe Article::Builder, type: :model do +RSpec.describe Article::Factory, type: :model do let(:blog) { create(:blog) } let(:user) { create(:user) } - let(:factory) { Article::Factory.new(blog, user) } + let(:factory) { described_class.new(blog, user) } describe "#default" do let(:new_article) { factory.default }