From 184bdbc00e2fdc0f517b8e790f6552410e43c1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Sat, 26 Oct 2024 19:16:22 +0200 Subject: [PATCH] Update tests after `enum` change --- test/generators/install_generator_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/generators/install_generator_test.rb b/test/generators/install_generator_test.rb index 9fc38a8..77fbbb9 100644 --- a/test/generators/install_generator_test.rb +++ b/test/generators/install_generator_test.rb @@ -89,7 +89,7 @@ class InstallGeneratorTest < Rails::Generators::TestCase assert_file "app/models/account.rb", /class Account < ApplicationRecord/ if ActiveRecord.version >= Gem::Version.new("7.0") - assert_file "app/models/account.rb", /enum :status, unverified: 1, verified: 2, closed: 3/ + assert_file "app/models/account.rb", /enum :status, { unverified: 1, verified: 2, closed: 3 }/ else assert_file "app/models/account.rb", /enum status: { unverified: 1, verified: 2, closed: 3 }/ end