How do I get spork to reload my common examples when I make changes to them? I tried the following but did not restart them:
Spork.each_run do
Dir[Rails.root.join("spec/shared_examples/*.rb")].each {|f| require f}
end
I know that I can add an observer to my Guardfile so that it reloads env when changing common examples, but my application is large and takes about 10-15 seconds to reload the whole environment:
watch(/^spec\/shared_examples\/.*\.rb$/)
I would rather just reload the generic examples that have changed, so I can have a faster feedback loop.
source
share