fix scheduler_spec for Ruby 1.8.7