Merge pull request #2992 from betagouv/fix-order-dependant-test
Fix order dependant test
This commit is contained in:
commit
f3a72482a5
2 changed files with 6 additions and 0 deletions
|
@ -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 }
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue