Skip to content

Commit

Permalink
Update test case with classes that are no longer included in rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornwall committed Jul 30, 2024
1 parent e5afd23 commit 90325bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/gettext_i18n_rails/model_attributes_finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Application < Rails::Application
keys = finder.find({}).keys
expected = [CarSeat, Part, StiParent]
expected.concat [AbstractParentClass, NotConventional] if Rails::VERSION::MAJOR >= 3
expected.concat [ActiveRecord::SchemaMigration] if Rails::VERSION::MAJOR >= 4
expected.concat [ActiveRecord::InternalMetadata] if Rails::VERSION::MAJOR >= 5
expected.concat [ActiveRecord::SchemaMigration] if Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MAJOR < 7
expected.concat [ActiveRecord::InternalMetadata] if Rails::VERSION::MAJOR >= 5 && Rails::VERSION::MAJOR < 7
keys.should =~ expected
end

Expand Down

0 comments on commit 90325bd

Please sign in to comment.