Merge pull request #2992 from betagouv/fix-order-dependant-test

Fix order dependant test
This commit is contained in:
Pierre de La Morinerie 2018-11-14 14:54:51 +01:00 committed by GitHub
commit f3a72482a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -626,6 +626,7 @@ describe Procedure do
describe "#export_filename" do describe "#export_filename" do
before { Timecop.freeze(Time.zone.local(2018, 1, 2, 23, 11, 14)) } before { Timecop.freeze(Time.zone.local(2018, 1, 2, 23, 11, 14)) }
after { Timecop.return }
subject { procedure.export_filename } subject { procedure.export_filename }

View file

@ -104,6 +104,11 @@ RSpec.configure do |config|
config.infer_spec_type_from_file_location! config.infer_spec_type_from_file_location!
config.tty = true config.tty = true
# Since rspec 3.8.0, bisect uses fork to improve bisection speed.
# This however fails as soon as we're running feature tests (which uses many processes).
# Default to the :shell bisect runner, so that bisecting over feature tests works.
config.bisect_runner = :shell
config.include Shoulda::Matchers::ActiveRecord, type: :model config.include Shoulda::Matchers::ActiveRecord, type: :model
config.include Shoulda::Matchers::ActiveModel, type: :model config.include Shoulda::Matchers::ActiveModel, type: :model
config.include Shoulda::Matchers::Independent, type: :model config.include Shoulda::Matchers::Independent, type: :model