# File lib/rubyrep/table_spec_resolver.rb, line 31 def non_existing_tables(table_pairs) [:left, :right].inject({}) do |memo, database| found_tables = table_pairs.inject([]) do |phantom_tables, table_pair| phantom_tables << table_pair[database] unless tables(database).include?(table_pair[database]) phantom_tables end memo[database] = found_tables unless found_tables.empty? memo end end