RSpec: figuring out flimsy tests
Run multiple times
for i in `seq 10`; do rspec path/to/spec/file.rb; done
Catch failures to figure out what went wrong
rescue RSpec::Expectations::ExpectationNotMetError => e
binding.pry
Run multiple times
for i in `seq 10`; do rspec path/to/spec/file.rb; done
Catch failures to figure out what went wrong
rescue RSpec::Expectations::ExpectationNotMetError => e
binding.pry