test/functional/storage_helper.rb in ruote-2.1.9 vs test/functional/storage_helper.rb in ruote-2.1.10
- old
+ new
@@ -64,10 +64,14 @@
raise "no persistence found (#{ps.inspect})" unless pers
lib, path = pers
$:.unshift(File.join(path, 'lib'))
- load File.join(path, %w[ test integration_connection.rb ])
+ begin
+ load File.join(path, %w[ test functional_connection.rb ])
+ rescue LoadError => le
+ load File.join(path, %w[ test integration_connection.rb ])
+ end
new_storage(opts)
elsif persistent