Skip to content

Commit

Permalink
Style/StringConcatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jul 13, 2024
1 parent cc6ace4 commit 4fae905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,3 @@ Style/FrozenStringLiteralComment:
- 'test/acts_as_commentable_test.rb'
- 'test/models.rb'
- 'test/schema.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'test/acts_as_commentable_test.rb'
10 changes: 5 additions & 5 deletions test/acts_as_commentable_test.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
require 'test/unit'
require 'logger'
require 'pry'
require File.expand_path(File.dirname(__FILE__) + '/../rails/init')
require File.expand_path("#{File.dirname(__FILE__)}/../rails/init")

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')

class ActsAsCommentableTest < Test::Unit::TestCase
def setup_comments
require File.expand_path(File.dirname(__FILE__) + '/../lib/generators/comment/templates/create_comments')
require File.expand_path("#{File.dirname(__FILE__)}/../lib/generators/comment/templates/create_comments")
CreateComments.up
load(File.expand_path(File.dirname(__FILE__) + '/../lib/generators/comment/templates/comment.rb'))
load(File.expand_path("#{File.dirname(__FILE__)}/../lib/generators/comment/templates/comment.rb"))
end

def setup_test_models
load(File.expand_path(File.dirname(__FILE__) + '/schema.rb'))
load(File.expand_path(File.dirname(__FILE__) + '/models.rb'))
load(File.expand_path("#{File.dirname(__FILE__)}/schema.rb"))
load(File.expand_path("#{File.dirname(__FILE__)}/models.rb"))
end

def setup
Expand Down

0 comments on commit 4fae905

Please sign in to comment.