This project follows semver 2.0.0 and the recommendations of keepachangelog.com.
- None
- None
- None
- Removed
MinitestToRspec::VERSION
, please useMinitestToRspec.gem_version
- None
- None
- #21 -
convert
setup
/teardown
methods tobefore
/after
blocks - #20 -
Support
refute_raise[s]
- #18 - Support namespaced exceptions for assert_raise[s]
- None
- None
- None
- None
- None
- #12 -
Only covert methods whose name begins with
test_
- None
- None
- #10 - Lift version constraint on sexp_processor
- Drop support for ruby < 2.3 so we can use frozen_string_literal
- We may now return frozen strings, now that we are using frozen_string_literal.
This could affect methods like
Converter#convert
. Even if some method seems to return a thawed string in some situations, users should simiply assume all strings are frozen.
- MinitestToRspec.gem_version
- #7 - Support for converting methods named test_*
- None
- Drop support for ruby < 2.2
None
- #4 - Constrain dependency: sexp_processor < 4.8
- No longer care about code style of output. See discussion in readme.
- Drop support for ruby 2.0
- Update ruby_parser to 3.8 (was 3.7)
- Use the official ruby2ruby instead of my sketchy sexp2ruby fork
None
None
None
- Update sexp2ruby to 0.0.4 (was 0.0.3)
assert
on a question-mark method converts toeq(true)
instead ofbe_truthy
. Likewise,refute
converts toeq(false)
. This is not guaranteed to be the same as minitest's fuzzyassert
, but the convention of question-mark methods returning real booleans is strong.
- Converts assert_not_nil
- CLI
- Added
--mocha
flag. If present, converts mocha to rspec-mocks. (Experimental) - Creates
target_file
directory if it does not exist
- Added
- Experimental
- mocha: with
__FILE__
keyword in input
- Make runtime dependency on trollop explicit: declare in gemspec
- Improve output: Fewer unnecessary parentheses: to, to_not
- Improve output: Fewer unnecessary parentheses
- Converts
- Draper::TestCase
- ActionMailer::TestCase
- Experimental
- mocha: once, twice
- Switch from ruby2ruby to sexp2ruby
- Will have better output, e.g. ruby 1.9.3 hash syntax
- Upgrade to ruby_parser 3.7
- Executable
- Renamed from
minitest_to_rspec
tomt2rspec
- The
target_file
argument is now optional
- Renamed from
- Experimental
- Conversion of mocha to rspec-mocks
- expects
- any_instance
- Conversion of mocha to rspec-mocks
- NoMethodError when input contains stabby lambda
- Converts
setup
andteardown
tobefore
andafter
assert_raise
,assert_raises
- CLI option:
--rails
- Prints
rails_helper
instead ofspec_helper
- Adds
:type
metadata, eg.:type => :controller
- So far, only supports
:model
and:controller
- So far, only supports
- Prints
- Experimental
- Limited conversion of mocha to rspec-mocks
- returns
- stub
- stub_everything
- stubs
- Ruby 1.9 hash syntax (See ruby2ruby PR 37)
- Limited conversion of mocha to rspec-mocks
- Improved error message for class definition using module shorthand
- Declare ruby2ruby as a runtime dependency
- CLI. Usage:
minitest_to_rspec source_file target_file
Initial release. 11 assertions are supported.