test/test_helper.rb
# Add more helper methods to be used by all tests here...
Add more helper methods to be used by all tests here
Add more helper methods to be used by all tests here
def assert_edge(source_id, destination_id)
    ActiveRecord::Base.connection.select_all('select * from nodes_edges').each do |row|
      return assert(true) if row['source_id'].to_i == source_id.to_i and 
                             row['destination_id'].to_i == destination_id.to_i
    end
    assert false, "source_id[#{source_id}] & destination_id[#{destination_id}] not found"
  end
def assert_edge ( source_id , destination_id ) ActiveRecord :: Base . connection . select_all ( 'select * from nodes_edges' ) . each do | row | return assert ( true ) if row [ 'source_id' ] . to_i == source_id . to_i and row [ 'destination_id' ] . to_i == destination_id . to_i end assert false , "source_id[#{source_id}] & destination_id[#{destination_id}] not found" end
Add more helper methods to be used by all tests here...
Add more helper methods to be used by all tests here ...
source_id
<not_specific>
destination_id
<not_specific>