Skip to content

Commit

Permalink
Update test case with classes that are no longer included in rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hornwall committed Jul 30, 2024
1 parent 3d3f878 commit f88bd5b
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 && Rails::VERSION::MINOR > 0)
expected.concat [ActiveRecord::InternalMetadata] if Rails::VERSION::MAJOR >= 5 && !(Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR > 0)
keys.should =~ expected
end

Expand Down

0 comments on commit f88bd5b

Please sign in to comment.