Sha256: 87fda8ce3702f9821aad5c5f147d802dae0a26004404dec9ad226df85bc9df07

Contents?: true

Size: 401 Bytes

Versions: 28

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

28 entries across 28 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/cli/delete/rspec_mutation.rb
souls-1.17.2 lib/souls/cli/delete/rspec_mutation.rb
souls-1.17.1 lib/souls/cli/delete/rspec_mutation.rb
souls-1.17.0 lib/souls/cli/delete/rspec_mutation.rb
souls-1.16.4 lib/souls/cli/delete/rspec_mutation.rb
souls-1.16.3 lib/souls/cli/delete/rspec_mutation.rb
souls-1.16.2 lib/souls/cli/delete/rspec_mutation.rb
souls-1.16.1 lib/souls/cli/delete/rspec_mutation.rb
souls-1.16.0 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.5 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.4 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.3 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.2 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.1 lib/souls/cli/delete/rspec_mutation.rb
souls-1.15.0 lib/souls/cli/delete/rspec_mutation.rb
souls-1.14.3 lib/souls/cli/delete/rspec_mutation.rb
souls-1.14.2 lib/souls/cli/delete/rspec_mutation.rb
souls-1.14.1 lib/souls/cli/delete/rspec_mutation.rb
souls-1.14.0 lib/souls/cli/delete/rspec_mutation.rb
souls-1.13.8 lib/souls/cli/delete/rspec_mutation.rb