Sha256: 1c3c7073a5d1b0b211ff625e44945458e8beaf7bebe0877149f3d4a8ab8438fa

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
souls-1.8.6 lib/souls/cli/delete/rspec_factory.rb
souls-1.8.5 lib/souls/cli/delete/rspec_factory.rb
souls-1.8.4 lib/souls/cli/delete/rspec_factory.rb