Skip to content

Commit

Permalink
Minitest.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Aug 10, 2023
1 parent 0ba0ac0 commit ea8b787
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions test/activemodel_validation_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class ActiveModelValidationTest < MiniTest::Spec
class ActiveModelValidationTest < Minitest::Spec
Session = Struct.new(:username, :email, :password, :confirm_password)
Album = Struct.new(:name, :songs, :artist)
Artist = Struct.new(:name)
Expand Down Expand Up @@ -381,7 +381,7 @@ class ValidateEachForm2 < Reform::Form

# Regression
# Addresses a bug: https://github.com/trailblazer/reform-rails/issues/103
class ActiveModelValidationWithIfTest < MiniTest::Spec
class ActiveModelValidationWithIfTest < Minitest::Spec
Session = Struct.new(:id)
# Album = Struct.new(:name, :songs, :artist)
# Artist = Struct.new(:name)
Expand Down
18 changes: 9 additions & 9 deletions test/unique_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "reform/form/validation/unique_validator.rb"
require "reform/form/active_record"

class UniquenessValidatorOnCreateTest < MiniTest::Spec
class UniquenessValidatorOnCreateTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :title
Expand All @@ -23,7 +23,7 @@ class SongForm < Reform::Form
end
end

class UniquenessValidatorOnCreateCaseInsensitiveTest < MiniTest::Spec
class UniquenessValidatorOnCreateCaseInsensitiveTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :title
Expand All @@ -50,7 +50,7 @@ class SongForm < Reform::Form
end
end

class UniquenessValidatorOnUpdateTest < MiniTest::Spec
class UniquenessValidatorOnUpdateTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :title
Expand All @@ -70,7 +70,7 @@ class SongForm < Reform::Form
end
end

class UniquenessValidatorOnUpdateWithDuplicateTest < MiniTest::Spec
class UniquenessValidatorOnUpdateWithDuplicateTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :title
Expand All @@ -89,7 +89,7 @@ class SongForm < Reform::Form
end
end

class UniquenessValidatorWithFromPropertyTest < MiniTest::Spec
class UniquenessValidatorWithFromPropertyTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :name, from: :title
Expand All @@ -109,7 +109,7 @@ class SongForm < Reform::Form
end
end

class UniqueWithCompositionTest < MiniTest::Spec
class UniqueWithCompositionTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
include Composition
Expand All @@ -128,7 +128,7 @@ class SongForm < Reform::Form
end


class UniqueValidatorWithScopeTest < MiniTest::Spec
class UniqueValidatorWithScopeTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :album_id
Expand Down Expand Up @@ -158,7 +158,7 @@ class SongForm < Reform::Form
end
end

class UniqueValidatorWithScopeAndCaseInsensitiveTest < MiniTest::Spec
class UniqueValidatorWithScopeAndCaseInsensitiveTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :album_id
Expand Down Expand Up @@ -188,7 +188,7 @@ class SongForm < Reform::Form
end
end

class UniqueValidatorWithScopeArrayTest < MiniTest::Spec
class UniqueValidatorWithScopeArrayTest < Minitest::Spec
class SongForm < Reform::Form
include ActiveRecord
property :album_id
Expand Down

0 comments on commit ea8b787

Please sign in to comment.