Sha256: 8b0e306ac1736911234874add6628f1c39a929bdc2f5d8a57f45d15fb453bbe5

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

require './spec_dbr/spec_helper'

describe "FOS Licensing" do
  before :all do
#    set_fos_db([UserInformation, Aircraft])
#    set_dbr_db([TripLeg, FlightLogExpense, Aircraft])
    db = Sequel.mysql(:username => 'datamart', :password => 'datap@ss', :adapter => 'mysql', :host => 'hrkdm', :database => 'dbr')
    db.loggers=[Logger.new($stdout)]
    TripLeg.db = db
    FlightLogExpense.db = db
  end

  it "puts the lotion on the skin" do
    p TripLeg.filter(:'trip number' => 68562, :'leg number' => 1).eager_graph(:fuel_expenses).first

#    p FlightLogExpense.where(:trip_leg_id => "SEMJ-3-17-39922-1258", :type => 1)

#    tl = TripLeg.filter(:trip_number=>68562, :leg_number =>1).first
#    tl = TripLeg.filter(:trip_number => 68562, :leg_number => 1).eager_graph(:fuel_expenses).select_fields(:self => [:trip_number, :leg_number], :fuel_expenses => [:type]).all
#    tl = TripLeg.filter(:trip_number => 68562, :leg_number => 1).eager_graph(:aircraft).select_fields(:self => [:trip_number, :leg_number], :aircraft => [:tail_number]).all
  end

#  it "gets the user licensing information" do
#    print UserInformation.select(:users_initials, :mobile_access).sql
#  end
#
#  it "gets the aircraft licensing information" do
#    print Aircraft.select(:tail_number, :mobile_access).sql
#  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fossil-0.5.46 spec/temp_spec.rb