Sha256: 846905b2b04ce30e8a444a116fce8367b9902c99208f2e1c07445b0b7179cc08
Contents?: true
Size: 440 Bytes
Versions: 120
Compression:
Stored size: 440 Bytes
Contents
module Souls class Delete < Thor desc "rspec_factory [CLASS_NAME]", "Delete Rspec Factory Test from schema.rb" def rspec_factory(class_name) file_path = "./spec/factories/#{class_name.pluralize}.rb" FileUtils.rm(file_path) puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path rescue Thor::Error => e raise(Thor::Error, e) end end end
Version data entries
120 entries across 120 versions & 1 rubygems