talira

Combustion

Test Rails engines without a full Rails app in your test folder

open sourceMITfree

Combustion is a Ruby library for testing Ruby on Rails engines: rather than generating a dummy Rails application inside the spec or test folder, it boots a minimal app from your engine's context with only the Rails parts you name (Combustion.initialize! :active_record, :action_controller, or :all), and works with RSpec and Capybara.

Problems it solves

  • test a Rails engine without a dummy app
  • write RSpec specs for a Rails engine gem
  • boot just ActiveRecord for an engine's tests

Features

  • minimal Rails app for engine specs
  • load only the Rails frameworks you need
  • works with RSpec and Capybara

Alternatives

The same job

These do what Combustion does.

  1. RSpec Behaviour-driven testing framework for Ruby
  2. Minitest Small, fast testing library for Ruby: unit tests, specs and benchmarks

Compare Combustion with the top 3