These are chat archives for edbirmingham/network

Jan 2017
Anthony Crumley
Jan 03 2017 01:05
@saabdoli The post parameters don't seem to match what is expected in the create action. Therefore it goes into the else in the create action when it should not. Take a look at the parameters from a request where you create a participation like what is being tested.
Started POST "/network_events" for at 2017-01-03 01:04:01 +0000
Cannot render console from! Allowed networks:, ::1,
Processing by NetworkEventsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"VBzx0KVrtY85VWqfUaXMKEBQ2ti61eNi8Zq+okKYIHO+mGfvNPqgPoyY5xzfQpXJFZ6yFNRfAvh1A1V57Q06MA==", "network_event"=>{"name"=>"", "program_id"=>"1", "location_id"=>"2", "organization_ids"=>[""], "site_contact_ids"=>[""], "school_contact_ids"=>[""], "volunteer_ids"=>[""], "school_ids"=>[""], "graduating_class_ids"=>[""], "cohort_ids"=>[""], "scheduled_at(1i)"=>"2017", "scheduled_at(2i)"=>"1", "scheduled_at(3i)"=>"3", "scheduled_at(4i)"=>"01", "scheduled_at(5i)"=>"03", "duration"=>"60", "needs_transport"=>"0", "transport_ordered_on(1i)"=>"2017", "transport_ordered_on(2i)"=>"1", "transport_ordered_on(3i)"=>"3", "transport_ordered_on(4i)"=>"01", "transport_ordered_on(5i)"=>"03", "notes"=>""}, "commit"=>"Create Event"}
That is a post to create an event. The parameters can be seen in the log and I use them to create my test with all the right parameters.