Test startup time -33% by making fixtures not require

Small little patch, big test improvements 🙂

# do not load every class when using fixtures :all -> speedup
ActiveRecord::TestFixtures::ClassMethods.class_eval do
 def require_fixture_classes(*args)
 end
end

FYI merged Rails PR, will be in Rails 5, maybe 4.2.x 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s