spec/spec_helper.rb in rom-sql-1.3.2 vs spec/spec_helper.rb in rom-sql-1.3.3
- old
+ new
@@ -75,10 +75,10 @@
include Dry::Types.module
end
def with_adapters(*args, &block)
reset_adapter = Hash[*ADAPTERS.flat_map { |a| [a, false] }]
- adapters = args.empty? || args[0] == :all ? ADAPTERS : args
+ adapters = args.empty? || args[0] == :all ? ADAPTERS : (args & ADAPTERS)
adapters.each do |adapter|
context("with #{adapter}", **reset_adapter, adapter => true, &block)
end
end