Updated the flight_view_spec with factories and moved the DateTime stubbing for flight's to the factory instead of in the spec.
Broke out the display price calculation logic into a separate private method in accordance with SRP.
Broke out the code to build the selects into the flights_contoller#build_selects private method to DRY up the code and follow SRP more strictly.
Built out tests for dynamic query_string generation, dynamic input_hash generation, and open query execution. The first two tests are green. Added JS function to flights.js to format the date data for easy parsing.
FlightController#Filter open query spec is now green.
Built out tests for Query String expectations and Input Hash expectations and modified code till green. Hooked up the AJAX calls via filter.js.erb and supporting render in the controller, that behavior needs testing. Jquery DatePicker is not triggering on change event, and the demo database currently has legacy dates for flights.
Renamed filter.html.erb to filter.js.erb