disabled timeout detection for RSpec tests

This commit is contained in:
Hauke Klement
2015-02-06 16:08:19 +01:00
parent c49bab1741
commit 2799db2e38

View File

@ -1,5 +1,3 @@
MAXIMUM_EXECUTION_TIME = 15
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require 'spec_helper'
@ -21,10 +19,6 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
config.around(:each) do |example|
Timeout::timeout(example.metadata[:permitted_execution_time] || MAXIMUM_EXECUTION_TIME) { example.run }
end
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"