spec/spec_helper.rb in dm-constraints-0.10.1 vs spec/spec_helper.rb in dm-constraints-0.10.2
- old
+ new
@@ -16,10 +16,10 @@
begin
adapter = DataMapper.setup(name.to_sym, connection_string)
# test the connection if possible
if adapter.respond_to?(:query)
- adapter.query('SELECT 1')
+ adapter.select('SELECT 1')
end
ADAPTERS[name] = connection_string
rescue LoadError => e
warn "Could not load do_#{name}: #{e}"