/thincloud-test-rails

Opinionated test framework dependencies & configuration for Rails applications, built on `thincloud-test`

Primary LanguageRubyMIT LicenseMIT

thincloud-test-rails Code Climate

Description

Opinionated testing framework dependencies and configuration for Rails applications, built on thincloud-test.

New Leaders uses this gem to manage the following dependencies:

Requirements

Ruby

This gem has been tested against the following Ruby versions:

  • 1.9.3

Rails

This gem requires Rails 3.2.11+ and has been tested on the following versions:

  • 3.2

Installation

Add this line to your application's Gemfile:

gem "thincloud-test-rails"

And then execute:

$ bundle

Or install it yourself as:

$ gem install thincloud-test-rails

Usage

The gem manages the test framework dependencies for you and provides a generator (thincloud:test) to bootstrap a test environment for your Rails application.

To configure your application in one easy step, run the following:

$ rails g thincloud:test

This generator will do the following:

  • Remove any existing Test::Unit-generated content
  • Run the mini_test:install generator for minitest-rails
  • Add test/support/* files which match New Leaders conventions
  • Inject a line into config/application.rb to require the thincloud/test/rails/railtie file

Once this is complete, you will have a complete test setup. Run rake and enjoy! 🎉 🎈

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a Pull Request

License