Project

despeckle

0.0
No commit activity in last 3 years
No release in over 3 years
RSpec is fine and everything, but now that MiniTest ships with Ruby 1.9 (and comes with the MiniTest::Spec language that's similar to RSpec), it's easy to give MiniTest a try. This gem provides a command line script that will do a lot of the drudgery involved in converting a spec file to MiniTest.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

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