Skip to content

Instantly share code, notes, and snippets.

@danielpuglisi
Created May 8, 2013 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpuglisi/5543488 to your computer and use it in GitHub Desktop.
Save danielpuglisi/5543488 to your computer and use it in GitHub Desktop.
Configure rspec or test/unit to autoreload factories with spring after they have changed.
RSpec.configure do |config|
config.before(:all) do
FactoryGirl.reload
end
end
class ActiveSupport::TestCase
setup do
FactoryGirl.reload
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment