Run sorted test
Sometimes when you fork a project and run the test, you can see that fail a lot. This is because they are running randomly. If you want to run it with the correct order you need to execute by this way.
find spec -type f -name *_spec.rb | sort | xargs rspec
Written by Jorge García
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#