Refactored ruby_worker_spec.rb