Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Assistance in switching from RSpec to MiniTest

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 despeckle.gemspec
README.md

despeckle

A script that helps you do most of the work required to convert RSpec tests to use MiniTest and Nutrasuite.

Currently only the xUnit style assertions are supported, but if there's much interest in it, MiniTest::Spec support would be easy to add.

Features

  • Top level describe blocks are converted to class statements.
  • Nested describe blocks are converted to Nutrasuite the blocks.
  • Many .should statements are mapped to their equivalent assertions.

Installation

$ gem install despeckle

Usage

$ despeckle < spec/thing_spec.rb > test/thing_test.rb
Something went wrong with that request. Please try again.