Sha256: db882ed76bf3d7f9f8c113a5e89bf40714ac8d845b7cbb3ea7f15fd6d185d739

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

h1. test-unit-rails

"Web site":http://test-unit.rubyforge.org/#test-unit-rails

h2. Description

test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit 2 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara integration with test-unit-rails.

Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't suppot test-unit 2. Rails with test-unit 2 works but is not fully worked.

h2. Install

You add the following codes to your Gemfile:

<pre>
group :development, :test do
  gem 'test-unit-rails'
end
</pre>

And you update bundled gems:

<pre>
% bundle update
</pre>

You replace @"require 'rails/test_help'"@ in your test/test_helper.rb with the following codes:

<pre>
# require 'rails/test_help'
require 'test/unit/rails'
</pre>

Now you can use full test-unit 2.x features, RR integration and Capybara integration.

h2. License

LGPLv2.1 or later.

(Kouhei Sutou has a right to change the license including contributed patches.)

h2. Authors

* Kouhei Sutou

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test-unit-rails-1.0.0 README.textile