Sha256: 39302375eb53aa570d71a1e81573c3920ddb0a52cc7274a2e82c00af7839ebe1
Contents?: true
Size: 517 Bytes
Versions: 23
Compression:
Stored size: 517 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_f(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
23 entries across 23 versions & 1 rubygems