Sha256: 39039dbd68fbee0f65230a816fd5edbd877595a8b8ceabc98dee485878772a7a

Contents?: true

Size: 401 Bytes

Versions: 68

Compression:

Stored size: 401 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)
      SOULs::Painter.delete_file(file_path.to_s)
      file_path
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
souls-4.1.2 lib/souls/cli/delete/rspec_mutation.rb
souls-4.1.1 lib/souls/cli/delete/rspec_mutation.rb
souls-4.1.0 lib/souls/cli/delete/rspec_mutation.rb
souls-4.0.3 lib/souls/cli/delete/rspec_mutation.rb
souls-4.0.2 lib/souls/cli/delete/rspec_mutation.rb
souls-4.0.1 lib/souls/cli/delete/rspec_mutation.rb
souls-4.0.0 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.8 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.7 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.6 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.5 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.4 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.3 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.2 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.1 lib/souls/cli/delete/rspec_mutation.rb
souls-3.0.0 lib/souls/cli/delete/rspec_mutation.rb
souls-2.0.4 lib/souls/cli/delete/rspec_mutation.rb
souls-2.0.3 lib/souls/cli/delete/rspec_mutation.rb
souls-2.0.2 lib/souls/cli/delete/rspec_mutation.rb
souls-2.0.1 lib/souls/cli/delete/rspec_mutation.rb