Skip to content

Commit 25a54b6

Browse files
authored
Fix new RuboCop offenses (#398)
1 parent eee18ea commit 25a54b6

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
postgres-version: '12'
2929
channel: 'stable'
3030

31-
- ruby-version: '3.2'
32-
gemfile: rails_edge
33-
postgres-version: '16'
34-
channel: 'experimental'
3531
- ruby-version: '3.3'
3632
gemfile: rails_edge
3733
postgres-version: '16'

lib/chrono_model/time_machine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module TimeMachine
1212

1313
included do
1414
if table_exists? && !chrono?
15-
logger.warn <<-MSG.squish
15+
logger.warn <<~MSG.squish
1616
ChronoModel: #{table_name} is not a temporal table.
1717
Please use `change_table :#{table_name}, temporal: true` in a migration.
1818
MSG

spec/spec_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
require_relative 'support/matchers/table'
2020
require_relative 'support/aruba'
2121

22-
puts "Testing against Active Record #{ActiveRecord::VERSION::STRING} with Arel #{Arel::VERSION}"
23-
2422
# This file was generated by the `rspec --init` command. Conventionally, all
2523
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
2624
# The generated `.rspec` file contains `--require spec_helper` which will cause

spec/support/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def conf.to_s
5656
end
5757
end
5858
rescue Errno::ENOENT
59-
warn <<-MSG.squish
59+
warn <<~MSG.squish
6060
Please define your AR database configuration
6161
in spec/config.yml or reference your own configuration
6262
file using the TEST_CONFIG environment variable

0 commit comments

Comments
 (0)