Added the status column to the flight_reservations table. Added a default method to the FlightReservation model and supporting tests to the spec.
Added airlines.yml parsing to the seeds.rb file. It could use some optimizing.
Created setup_db.rake to house methods for populating the database with all models excluding Airports and Airlines.
Built up setup_db.rake to include populate_reservations, populate_credit_card, populate_preference and populate_frequent_flier_clients.
Fixed a bug in db:populate_credit_cards in setup_db.rake where creditcards were being made with an expiration in the year 9110.
Added db:populate_flight_reservations to setup_db.rake.
Realized that type is a reserved column name in rails while developing db:populate_planes in setup_db.rake. Renamed planes table column type to make and updated all specs.
Built up a parent db:populate method in setup_db.rake to trigger all individual populate tasks.
Removed test folder."
Generated flights_controller and spec.
Replaced the public root file with flights#show to begin working on the main view.
Added the will_paginate gem for use in paginating the returned results on the initial flights#show load. Built up the specs for airlines, destinations and origins hash generation on flights#show. Added capybara to the app for use in testing the flights#show page. Built the basic drop downs on the flights#show page.
Added an after_save callback to the plane model to update the flight's bus and eco avail attributes based on the plane's capacity.
Rewrote the seats setting callback in plane.rb to be more in line with single responsibility principles. Functionality is retained and all tests are green.
Added comments to the flight set_seat_count method and the plane's update_flight method. Added a call back test to the flight_spec to make sure the bus_avail and eco_avail variables are being set properly by the callback.
Added behavior in flights_controller to assemble a display_prices array containing the next hundred for use in a price select.
Added a view spec for the flight page. It currently tests all select boxes for presence excluding the date select boxes.
Added a presence test for the date select text field and added the input itself to the page. All tests green.
Removed the date select tags from the flight view. Replaced with jquery-ui's datepicker. All existing tests are green, but no JS testing exists as of yet.
Removed flights.js.coffee and replaced with flights.js, removed google style references for datepicker as they were not necessary.