Skip to content

Commit

Permalink
Require classes models before fixtures (needed for Rails >= 4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Lestavel committed Apr 17, 2018
1 parent 33bd434 commit 73fdcd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_helper.rb
Expand Up @@ -34,6 +34,8 @@
ActiveRecord::Base.send(:include, Geokit::ActsAsMappable::Glue)
ActionController::Base.send(:include, Geokit::GeocoderControl)
ActionController::Base.send(:include, Geokit::IpGeocodeLookup)
# Rails >= 4 requires models classes to be loaded before fixtures are created
Dir[PLUGIN_ROOT + "test/models/*.rb"].each { |file| require file }

class GeokitTestCase < ActiveSupport::TestCase
begin
Expand Down

0 comments on commit 73fdcd2

Please sign in to comment.