Skip to content

Commit

Permalink
Update minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Aug 4, 2023
1 parent b9a1299 commit 311ce64
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ GEM
nokogiri (>= 1.12.0)
method_source (1.0.0)
mini_portile2 (2.8.2)
minitest (5.18.1)
minitest (5.19.0)
nokogiri (1.15.3)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down
2 changes: 1 addition & 1 deletion test/background_migration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"
require_relative "background_migrations/background_migrations"

class BackgroundMigrationTest < MiniTest::Test
class BackgroundMigrationTest < Minitest::Test
def test_named_returns_migration_based_on_name
expected_migration = BackgroundMigrations::MakeAllNonAdmins
assert_equal expected_migration, OnlineMigrations::BackgroundMigration.named("MakeAllNonAdmins")
Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/advisory_lock_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class AdvisoryLockTest < MiniTest::Test
class AdvisoryLockTest < Minitest::Test
def setup
@lock = OnlineMigrations::BackgroundMigrations::AdvisoryLock.new(name: "somename")
end
Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/backfill_column_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class BackfillColumnTest < MiniTest::Test
class BackfillColumnTest < Minitest::Test
class User < ActiveRecord::Base
default_scope { where(banned: false) }
end
Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/copy_column_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class CopyColumnTest < MiniTest::Test
class CopyColumnTest < Minitest::Test
class Project < ActiveRecord::Base
default_scope { where(archived: false) }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class DeleteAssociatedRecordsTest < MiniTest::Test
class DeleteAssociatedRecordsTest < Minitest::Test
class Link < ActiveRecord::Base
has_many :clicks
end
Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/delete_orphaned_records_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class DeleteOrphanedRecordsTest < MiniTest::Test
class DeleteOrphanedRecordsTest < Minitest::Test
class User < ActiveRecord::Base
has_many :posts
has_many :comments
Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/migration_job_runner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class MigrationJobRunnerTest < MiniTest::Test
class MigrationJobRunnerTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/migration_job_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class MigrationJobTest < MiniTest::Test
class MigrationJobTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/migration_runner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class MigrationRunnerTest < MiniTest::Test
class MigrationRunnerTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/migration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class MigrationTest < MiniTest::Test
class MigrationTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class PerformActionOnRelationTest < MiniTest::Test
class PerformActionOnRelationTest < Minitest::Test
class User < ActiveRecord::Base
default_scope { where(banned: [nil, false]) }

Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/reset_counters_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class ResetCountersTest < MiniTest::Test
class ResetCountersTest < Minitest::Test
class User < ActiveRecord::Base
default_scope { where(banned: false) }

Expand Down
2 changes: 1 addition & 1 deletion test/background_migrations/scheduler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module BackgroundMigrations
class SchedulerTest < MiniTest::Test
class SchedulerTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/add_column_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class AddColumnTest < MiniTest::Test
class AddColumnTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/add_reference_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class AddReferenceTest < MiniTest::Test
class AddReferenceTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade)
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/add_timestamps_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class AddTimestampsTest < MiniTest::Test
class AddTimestampsTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade)
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/change_column_default_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class ChangeColumnDefaultTest < MiniTest::Test
class ChangeColumnDefaultTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/change_column_null_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class ChangeColumnNullTest < MiniTest::Test
class ChangeColumnNullTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/change_column_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class ChangeColumnTest < MiniTest::Test
class ChangeColumnTest < Minitest::Test
attr_reader :connection

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/check_constraints_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class CheckConstraintsTest < MiniTest::Test
class CheckConstraintsTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/custom_checks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class CustomChecksTest < MiniTest::Test
class CustomChecksTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/foreign_keys_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class ForeignKeysTest < MiniTest::Test
class ForeignKeysTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/indexes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class IndexesTest < MiniTest::Test
class IndexesTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/inheritance_column_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class InheritanceColumnTest < MiniTest::Test
class InheritanceColumnTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade)
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/misc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class MiscTest < MiniTest::Test
class MiscTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/removing_columns_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class RemovingColumnsTest < MiniTest::Test
class RemovingColumnsTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users, force: :cascade) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/command_checker/removing_tables_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module CommandChecker
class RemovingTablesTest < MiniTest::Test
class RemovingTablesTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/command_recorder_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class CommandRecorderTest < MiniTest::Test
class CommandRecorderTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection
@connection.create_table(:users) do |t|
Expand Down
2 changes: 1 addition & 1 deletion test/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class ConfigTest < MiniTest::Test
class ConfigTest < Minitest::Test
def setup
connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/documentation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class DocumentationTest < MiniTest::Test
class DocumentationTest < Minitest::Test
def test_documentation_correctly_written
assert_empty `bundle exec yard --no-save --no-output --no-stats`
end
Expand Down
2 changes: 1 addition & 1 deletion test/lock_retrier_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class LockRetrierTest < MiniTest::Test
class LockRetrierTest < Minitest::Test
class LockRetriesMigration < TestMigration
def change
$migrate_attempts += 1
Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/add_column_with_default_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class AddColumnWithDefaultTest < MiniTest::Test
class AddColumnWithDefaultTest < Minitest::Test
class Milestone < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/add_reference_concurrently_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class AddReferenceConcurrentlyTest < MiniTest::Test
class AddReferenceConcurrentlyTest < Minitest::Test
class Milestone < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/changing_column_type_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class ChangingColumnTypeTest < MiniTest::Test
class ChangingColumnTypeTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/check_constraints_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class CheckConstraintsTest < MiniTest::Test
class CheckConstraintsTest < Minitest::Test
class Milestone < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/foreign_keys_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class ForeignKeysTest < MiniTest::Test
class ForeignKeysTest < Minitest::Test
attr_reader :connection

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/indexes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class IndexesTest < MiniTest::Test
class IndexesTest < Minitest::Test
def setup
@connection = ActiveRecord::Base.connection

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/misc_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class MiscTest < MiniTest::Test
class MiscTest < Minitest::Test
class User < ActiveRecord::Base
has_many :posts, foreign_key: :author_id
end
Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/renaming_columns_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class RenamingColumnsTest < MiniTest::Test
class RenamingColumnsTest < Minitest::Test
class User < ActiveRecord::Base
end

Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/renaming_table_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class RenamingTableTest < MiniTest::Test
class RenamingTableTest < Minitest::Test
class ProjectOld < ActiveRecord::Base
self.table_name = "projects"
end
Expand Down
2 changes: 1 addition & 1 deletion test/schema_statements/update_column_in_batches_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "test_helper"

module SchemaStatements
class UpdateColumnInBatchesTest < MiniTest::Test
class UpdateColumnInBatchesTest < Minitest::Test
class Milestone < ActiveRecord::Base
end

Expand Down

0 comments on commit 311ce64

Please sign in to comment.