Sha256: a164a371c8f14f3798385349f041fc9fca1cbcb966db3c367130000b1ee0e652
Contents?: true
Size: 491 Bytes
Versions: 82
Compression:
Stored size: 491 Bytes
Contents
module Souls class Delete < Thor desc "rspec_policy [CLASS_NAME]", "Delete Rspec Policy Test" def rspec_policy(class_name) singularized_class_name = class_name.singularize file_path = "./spec/policies/#{singularized_class_name}_policy_spec.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
82 entries across 82 versions & 1 rubygems