Modified gen_schedule_helper.rb to be a module and moved mock_schedule as an inner class in that helper module.