Sha256: 9bde93cde3c2c8aba27cd7bf469d4ddb26bffb03513dd2c13e32df55ea453539
Contents?: true
Size: 541 Bytes
Versions: 62
Compression:
Stored size: 541 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "airport_fbo associations" do it "finds airport" do set_fos_db([Airport, AirportFbo]) # fbo = AirportFbo["CTAI", 183, 3, 38174, 38] #ODYSSEY AVIATION # fbo.name.should == 'ODYSSEY AVIATION' # p fbo.values.select{|k,v| k.match(/airport/) } # p fbo.airport a = Airport.filter(:icao=>'AGGA').eager_graph(:airport_fbos).limit(1).all.first a.airport_fbos.first.name.should == "SOLOMON AIRLINES" # a.airport_fbos.first.values end end
Version data entries
62 entries across 62 versions & 1 rubygems