Sha256: 4a92888c24a7ad790cb4ba37479f9e1c0df6fb44a2dc236f0ac3c58b60d3c27a
Contents?: true
Size: 515 Bytes
Versions: 130
Compression:
Stored size: 515 Bytes
Contents
module Souls class Delete < Thor desc "rspec_mutation [CLASS_NAME]", "Delete Rspec Mutation Test from schema.rb" def rspec_mutation(class_name) singularized_class_name = class_name.singularize file_path = "./spec/mutations/base/#{singularized_class_name}_spec.rb" FileUtils.rm(file_path) puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path rescue StandardError => e raise(StandardError, e) end end end
Version data entries
130 entries across 130 versions & 1 rubygems