Skip to content

Commit

Permalink
Update tests after enum change
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Oct 26, 2024
1 parent b727fdd commit 184bdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/generators/install_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 184bdbc

Please sign in to comment.