Exit out of long-running specs in your RSpec test suite.
# spec_helper.rb
require "timeout"
RSpec.configure do |config|
config.around(:each) do |example|
Timeout::timeout(5) {
example.run
}
end
end
Exit out of long-running specs in your RSpec test suite.
# spec_helper.rb
require "timeout"
RSpec.configure do |config|
config.around(:each) do |example|
Timeout::timeout(5) {
example.run
}
end
end