diff options
author | Matthew Draper <matthew@trebex.net> | 2017-07-02 01:08:37 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-07-02 01:11:50 +0930 |
commit | 3420a14590c0e6915d8b6c242887f74adb4120f9 (patch) | |
tree | 7ae54681e3e2b18555603c39c50b01f3707ef9a7 /activerecord/test/support | |
parent | afb66a5a598ce4ac74ad84b125a5abf046dcf5aa (diff) | |
parent | cfade1ec7ee7b5b51f3c1578e3474f9c156f2971 (diff) | |
download | rails-3420a14590c0e6915d8b6c242887f74adb4120f9.tar.gz rails-3420a14590c0e6915d8b6c242887f74adb4120f9.tar.bz2 rails-3420a14590c0e6915d8b6c242887f74adb4120f9.zip |
Merge pull request #29540 from kirs/rubocop-frozen-string
Enforce frozen string in Rubocop
Diffstat (limited to 'activerecord/test/support')
-rw-r--r-- | activerecord/test/support/config.rb | 1 | ||||
-rw-r--r-- | activerecord/test/support/connection.rb | 1 | ||||
-rw-r--r-- | activerecord/test/support/connection_helper.rb | 1 | ||||
-rw-r--r-- | activerecord/test/support/ddl_helper.rb | 1 | ||||
-rw-r--r-- | activerecord/test/support/schema_dumping_helper.rb | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/support/config.rb b/activerecord/test/support/config.rb index aaff408b41..e385d7fff7 100644 --- a/activerecord/test/support/config.rb +++ b/activerecord/test/support/config.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "yaml" require "erb" require "fileutils" diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb index 1a609e13c3..06a037d3d0 100644 --- a/activerecord/test/support/connection.rb +++ b/activerecord/test/support/connection.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require "active_support/logger" require "models/college" require "models/course" diff --git a/activerecord/test/support/connection_helper.rb b/activerecord/test/support/connection_helper.rb index 4a19e5df44..5e37a4a991 100644 --- a/activerecord/test/support/connection_helper.rb +++ b/activerecord/test/support/connection_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module ConnectionHelper def run_without_connection original_connection = ActiveRecord::Base.remove_connection diff --git a/activerecord/test/support/ddl_helper.rb b/activerecord/test/support/ddl_helper.rb index 43cb235e01..3a07316637 100644 --- a/activerecord/test/support/ddl_helper.rb +++ b/activerecord/test/support/ddl_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module DdlHelper def with_example_table(connection, table_name, definition = nil) connection.execute("CREATE TABLE #{table_name}(#{definition})") diff --git a/activerecord/test/support/schema_dumping_helper.rb b/activerecord/test/support/schema_dumping_helper.rb index 666c1b6a14..1a3f67f3ed 100644 --- a/activerecord/test/support/schema_dumping_helper.rb +++ b/activerecord/test/support/schema_dumping_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module SchemaDumpingHelper def dump_table_schema(table, connection = ActiveRecord::Base.connection) old_ignore_tables = ActiveRecord::SchemaDumper.ignore_tables |