lib/switchman/test_helper.rb in switchman-3.4.2 vs lib/switchman/test_helper.rb in switchman-3.5.0
- old
+ new
@@ -63,10 +63,10 @@
def find_existing_test_shard(server, name)
if server == Shard.default.database_server
server.shards.where(name: name).first
else
- shard = Shard.where('database_server_id IS NOT NULL AND name=?', name).first
+ shard = Shard.where("database_server_id IS NOT NULL AND name=?", name).first
# if somehow databases got created in a different order, change the shard to match
shard.database_server = server if shard
shard
end
end