Refactor ruby_extension_task_spec.rb