Project

auto_specs

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Don't Write Specs Yourself.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
~> 10.0
 Project Readme

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.

Installation

Add this line to your application's Gemfile:

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

  1. Fork it ( https://github.com/aditya-kapoor/auto_specs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request