thincloud-test-rails
Description
Opinionated testing framework dependencies and configuration for Rails applications, built on thincloud-test
.
New Leaders uses this gem to manage the following dependencies:
- capybara
- database_cleaner
- factory_girl_rails
- minitest-rails
- minitest-rails-capybara
- minitest-rails-shoulda
- shoulda-matchers
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 forminitest-rails
- Add
test/support/*
files which match New Leaders conventions - Inject a line into
config/application.rb
to require thethincloud/test/rails/railtie
file
Once this is complete, you will have a complete test setup. Run rake
and enjoy! :tada: :balloon:
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a Pull Request
License
- Freely distributable and licensed under the MIT license.
- Copyright (c) 2013 New Leaders ([email protected])
- https://newleaders.com