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

Version Path
fossil-0.5.50 spec/models/airport_fbo_spec.rb
fossil-0.5.49 spec/models/airport_fbo_spec.rb
fossil-0.5.48 spec/models/airport_fbo_spec.rb
fossil-0.5.47 spec/models/airport_fbo_spec.rb
fossil-0.5.46 spec/models/airport_fbo_spec.rb
fossil-0.5.45 spec/models/airport_fbo_spec.rb
fossil-0.5.44 spec/models/airport_fbo_spec.rb
fossil-0.5.43 spec/models/airport_fbo_spec.rb
fossil-0.5.42 spec/models/airport_fbo_spec.rb
fossil-0.5.41 spec/models/airport_fbo_spec.rb
fossil-0.5.40 spec/models/airport_fbo_spec.rb
fossil-0.5.39 spec/models/airport_fbo_spec.rb
fossil-0.5.38 spec/models/airport_fbo_spec.rb
fossil-0.5.37 spec/models/airport_fbo_spec.rb
fossil-0.5.36 spec/models/airport_fbo_spec.rb
fossil-0.5.35 spec/models/airport_fbo_spec.rb
fossil-0.5.34 spec/models/airport_fbo_spec.rb
fossil-0.5.33 spec/models/airport_fbo_spec.rb
fossil-0.5.32 spec/models/airport_fbo_spec.rb
fossil-0.5.31 spec/models/airport_fbo_spec.rb