public function test_update()
{
$repo = App::make(ScheduleRepository::class);
$schedule = factory(Schedule::class)->create();
$update = $repo->update(['name' => 'oi 2'], $schedule->id);
$this->assertInstanceOf(Schedule::class, $update);
$this->assertEquals($schedule->id, $update->id);
}