<commit_before># AutoSpecs

*Don't Write specs yourself.*

You might be caught up in the situation where all the development work is done first and then you have to write specs.

The purpose of this gem is to serve as the bootstrap tool where all the known specs are already written for you.

## Prerequisites

In order to use this gem, the following steps needs to be done before installing this gem.

1. install `rspec-rails` gem. Refer to the official page of the gem to know more.
2. install `shoulda-matchers` gem. Refer to the official page of the gem to know more.

The reason we chose `rspec` and `shoulda-matcher` is due to their simple and efficient DSL which makes writing tests easier.

### Currently we are generating the `associations` but it is being planned for `validations` too. There is an [open issue](https://github.com/aditya-kapoor/auto-specs/issues/5) for this.


## Installation

Add this line to your application's Gemfile:

```ruby
gem 'auto_specs'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install auto_specs

## Usage

Upon installation in the rails app, the gem presents you with two `rake` tasks namely:

1. auto_specs:model
2. auto_spec:controller [TODO]

Running `rake auto_specs:model` would generate the model file specs in the `spec` directory.

## Contributing
<commit_msg>small fix on the name of tasks<commit_after># AutoSpecs

*Don't Write specs yourself.*

You might be caught up in the situation where all the development work is done first and then you have to write specs.

The purpose of this gem is to serve as the bootstrap tool where all the known specs are already written for you.

## Prerequisites

In order to use this gem, the following steps needs to be done before installing this gem.

1. install `rspec-rails` gem. Refer to the official page of the gem to know more.
2. install `shoulda-matchers` gem. Refer to the official page of the gem to know more.

The reason we chose `rspec` and `shoulda-matcher` is due to their simple and efficient DSL which makes writing tests easier.

### Currently we are generating the `associations` but it is being planned for `validations` too. There is an [open issue](https://github.com/aditya-kapoor/auto-specs/issues/5) for this.


## Installation

Add this line to your application's Gemfile:

```ruby
gem 'auto_specs'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install auto_specs

## Usage

Upon installation in the rails app, the gem presents you with two `rake` tasks namely:

1. auto_specs:models
2. auto_spec:controllers [TODO]

Running `rake auto_specs:models` would generate the model file specs in the `spec` directory.

## Contributing

{'fraction_non_alphanumeric': 0.0672082717872969, 'fraction_numerical': 0.003692762186115214, 'mean_word_length': 4.082551594746716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806569', 'n_tokens_mistral': 794, 'n_tokens_neox': 759, 'n_words': 402}