News

Version 1.5.10 released

Added by Brian Ford 373 days ago

Summary of changes:

  • Enhances ruby_exe helper with :dir option to change directory before running (jredville)
  • Adds --report option to list the specs that are guarded.
  • Adds --report-on GUARD option to list the specs guarded by GUARD.

Version 1.5.9 released

Added by Brian Ford 392 days ago

Summary of changes:

  • Fixes the not_supported_on guard bug that prevented it from running on MRI 1.8/1.9.
  • The not_supported_on, deviates_on, extended_on guards now raise an exception if passed :ruby.

See http://rubyspec.org/wiki/rubyspec/Guards for documentation on all the spec guards.

Version 1.5.8 released

Added by Brian Ford 392 days ago

Summary of changes:

  • The compliant_on, not_compliant_on guards now always run on MRI 1.8/1.9
  • The not_supported_on, deviates_on, extended_on should only be used with alternative implementations
  • None of the implementation guards above should be used with platform designators like :windows or :java.
  • Adds should have_method matcher.

See http://rubyspec.org/wiki/rubyspec/Guards for documentation on all the spec guards.

Version 1.5.7 released

Added by Brian Ford 397 days ago

Summary of changes:

  • Adds DescribeFormatter that prints a summary of failure and error counts for each describe block.
  • Adds escaping of newlines embedded in spec description strings.
  • Fixes circular require warnings on 1.9.
  • Adds should have_private_instance_method matcher.
  • Adds should have_instance_method matcher.
  • Adds facility for custom spec options.

Version 1.5.6 released

Added by Brian Ford 429 days ago

Summary of changes:

  • Adds BackgroundGuard that is enabled with the --background command line option. This guard is used for specs that may block if run in a background process (e.g. library/readline)
  • Adds --prefix command line option the specifies a string to append to potential file names when resolving spec files.
  • Adds -C, --chdir DIR command line option that changes the working directory to DIR before running the specs.
  • Adds spec collections to the config file that can be used to run the correct specs for a particular version. For example, mspec :library will run the appropriate library specs. RubySpec has updated ruby.1.8.mspec and ruby.1.9.mspec files that set :core, :library, and :language correctly.

Version 1.5.5 released

Added by Brian Ford 434 days ago

Summary of changes:

  • Adds env and username helpers (jredville).
  • Fixes mspec -v output.
  • Adds language_version helper for syntax-sensitive specs.
  • Refactors MSpec execution modes.
  • Adds --unguarded mode to the mspec runners to disable all guards while running the specs.
  • Fixes mspec tag --purge to consider guarded specs when purging unmatched tags.
  • Adds with_tty helper.
  • Refactors version comparisons.

Version 1.5.4 released

Added by Brian Ford 447 days ago

Summary of changes:

  • Adds .bat files for the runner commands on Windows (jredville).
  • Adds mspec tag --purge command to clean up tag files.
  • Adds 'argv' and 'fixture' helpers used in the ARGF specs.
  • Fixes BigEndianGuard and LittleEndianGuard for Ruby 1.9 (yugui).
  • Removes the Object#metaclass helper added in v1.5.2.
  • Adds message parameter to 'flunk' helper (jredville).
  • Omits File.executable? test in ruby_exe helper on Windows to ensure more reliable behavior (jredville).

Version 1.5.3 released

Added by Brian Ford 463 days ago

Summary of changes:

  • Fixed ruby_exe helper to not require that the ruby code file be executable.
  • Added Object#metaclass helper. This was needed to verify that ARGF is extended by the Enumerable module.
  • Changed the front script (mspec) to load the config file when given the -B option, as well as pass it on to the subscript (e.g. mspec-run).
  • Changed the default loading of config scripts. First, 'default.mspec' is attempted. If that file can be loaded, no other default file is loaded. If 'default.mspec' cannot be loaded, then an attempt is made to load a file based on the value of RUBY_ENGINE and RUBY_VERSION (see RDoc in lib/mspec/utils/script.rb)

This version fixes the problems introduced in 1.5.2 relating to default loading of config files.

Version 1.5.1 released

Added by Brian Ford 477 days ago

Summary of changes:

  • Adds RespondToMatcher.
  • Fixes Mock.verify_call for Ruby 1.9.
  • Fixes errors on implementations with incomplete IO#flush.
  • Adds FileFormatter and uses it instead of DottedFormatter for large numbers of files.
  • Adds MethodFormatter.
  • Adds :files config setting and allows for more flexible specification of which files to run.

Version 1.5.0 released

Added by Brian Ford 578 days ago

Summary of changes:

  • Replaced optparse with custom MSpecOptions parser that should not use any more advanced features than used in the specs (i.e. class/module, methods, procs).
  • Added ruby_exe helper to invoke spec subprocesses using the same Ruby executable as the one running the specs.
  • Added mspec tag --list TAG and --list-all commands. These commands list tagged specs that would actually be run (i.e. not any specs that would be omitted due to guards).
  • Various bug fixes.

1 2 Next »

Also available in: Atom