Skip to content

Commit 16925cd

Browse files
author
Anna
committed
load setup files when running selected tests
1 parent 5445135 commit 16925cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ end
1515
# If you have trouble running single tests (errors about requirements):
1616
# http://veganswithtypewriters.net/blog/2013/06/29/weirdness-with-rake-solved/
1717
def test_files
18-
test_setup = "test/cases/aaaa_create_tables_test_sqlserver.rb"
19-
return (ENV['TEST_FILES']+","+test_setup).split(',').sort if ENV['TEST_FILES']
18+
test_setup = ["test/cases/sqlserver_helper.rb", "test/cases/aaaa_create_tables_test_sqlserver.rb"]
19+
return test_setup+(ENV['TEST_FILES']).split(',').sort if ENV['TEST_FILES']
2020
sqlserver_cases = Dir.glob("test/cases/**/*_test_sqlserver.rb").sort
2121
ar_path = Gem.loaded_specs['activerecord'].full_gem_path
2222
ar_cases = Dir.glob("#{ar_path}/test/cases/**/*_test.rb")

0 commit comments

Comments
 (0)