Added method to create_spec.rb