From 7bf791637aa8bb2e6b2c09ea8cd6c49044d6d9f9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 20 Jun 2016 14:55:47 +0200 Subject: [PATCH] Improved order of tests. --- test/test_helper.rb | 3 +++ test/unit/auto_wizard_test.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index c05123ee3..ac3f690e6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -5,7 +5,10 @@ require 'cache' require 'simplecov' require 'simplecov-rcov' +ActiveSupport::TestCase.test_order = :sorted + class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. # # Note: You'll currently still have to declare fixtures explicitly in integration tests diff --git a/test/unit/auto_wizard_test.rb b/test/unit/auto_wizard_test.rb index d4c0394ef..4de69621f 100644 --- a/test/unit/auto_wizard_test.rb +++ b/test/unit/auto_wizard_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class AutoWizardTest < ActiveSupport::TestCase - test 'simple' do + test 'a simple' do auto_wizard_data = { Users: [ { @@ -76,7 +76,7 @@ class AutoWizardTest < ActiveSupport::TestCase } end - test 'complex' do + test 'b complex' do auto_wizard_data = { Organizations: [ {