refactored create_spec.rb