2013-03-11 08:37:10 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to to 0.13.3.
# Release Notes
## 0.13.3
* Allow `Mocha::ParameterMatchers#includes` to accept multiple items. Thanks
to @simao.
* Allow stubbing of *private* `Kernel` methods. Fixes #134. Thanks to @camski
for reporting.
* Avoid a warning when `test/unit/version` is required by other libraries in
the same project. Fixes #140. Thanks to @tmiller.
* Make auto-activation of Test::Unit integration more resilient. This change
is specifically to cope with the nasty re-defining of classes that is done
by the `minitest-spec-rails` gem. Fixes #143. Thanks to @tubaxenor for
reporting.
* Safer restoration of stubbed method visibility. Fixes #141. Thanks to @tmm1.
* Ensure `Mockery` instance gets reset even if exception raised. Fixes #144.
* Adapt Mocha acceptance tests to cope with changes in output from latest
(v4.6.2) of MiniTest.
* Updates to README about Rails compatibility.
|
2013-02-11 03:54:19 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.13.2.
# Release Notes
## 0.13.2
* Stubbing of methods re-declared with different visibilty. Fixes #109.
* Add `Mock#responds_like_instance_of`. Fixes #119.
* Make `Expectation#inspect` less verbose and more useful. Fixes #122.
* Make unit tests more robust to changes in environment. Fixes #121.
* Update README in an attempt to head Rails-related issues off at the pass.
* Add a Gem Badge to provide a link to Mocha on Rubygems.
* Make documentation example consistent with other examples.
|
2012-12-16 17:28:07 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.13.1.
## 0.13.1
* Fix #97 - `Mocha::ParameterMatchers#has_entry` does not work with an Array as \
the entry's value. Thanks to @ngokli.
* Allow deprecation `:debug` mode to be switched on from `MOCHA_OPTIONS` \
environment variable.
## 0.13.0
* Major overhaul of MiniTest & Test::Unit integration. Mocha now integrates \
with later versions of the two test libraries using documented hooks rather than \
monkey-patching. This should mean that Mocha will integrate with new versions of \
either library without the need to release a new version of Mocha each time, \
which was clearly bad and unsustainable. Many thanks to @tenderlove, @zenspider \
& @kou for their help, suggestions & patience.
* Temporarily deprecated `require 'mocha'`. Use `require 'mocha/setup'` instead. \
The plan is that eventually `require 'mocha'` will *not* automatically integrate \
with either of the two test libraries as it does at the moment, and you'll need \
to explicitly & separately trigger the integration. I think this will \
provide a lot more flexibility and will hopefully do away with the need for the \
`require: false` option in the `Gemfile` which has always confused people.
* Deprecated `require 'mocha_standalone'` and `require 'mocha/standalone'`. Use \
`require 'mocha/api` instead.
* Although these are not part of Mocha's public API, I thought I should mention \
that the MiniTest and Test::Unit assertion counter classes have been combined \
into a single class `Mocha::Integration::AssertionCounter`.
* Extracted Mocha::Hooks module from Mocha::API and added documentation for test \
library authors.
* Improvements to documentation. Much of it has been combined into the README file.
* Fix #101 - Mock#respond_to? doesn't work with a string argument - thanks to \
@urbanautomaton.
* Fix #105 - Travis link in README - thanks to @cknadler.
* Various improvements to automated testing of integration with test libraries.
* Make deprecation warnings more prominent.
= 0.12.7
* Officially support minitest v4.1.0 (still monkey-patching).
= 0.12.6
* Fixes #103.
= 0.12.5
* Officially support minitest v3.5.0 (still monkey-patching).
|
2012-09-15 14:28:00 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.12.4.
= 0.12.4
* Officially support minitest v3.4.0 & test-unit v2.5.2 (still monkey-patching).
|
2012-09-03 17:41:22 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.12.3.
= 0.12.3
* Revert rename of undocumented internal module since it turns out
Rails/ActiveSupport is relying on its existence.
= 0.12.2
* Officially support minitest v3.3.0 (still monkey-patching)
= 0.12.1
* Deprecation warning (instead of fail fast) if neither Test::Unit
nor MiniTest is loaded. Fixes #88.
* Remove deprecated access to `Mocha::Standalone`.
* Remove the deprecated file `stubba.rb`.
* Officially support test-unit v2.5.1 (still monkey-patching).
* Improve the API acceptance test.
= 0.12.0
* Fail fast if neither Test::Unit nor MiniTest is loaded. Fixes #40.
* Officially support MiniTest up to v3.2.0 (still monkey-patching).
* Officially support test-unit v2.5.0 (still monkey-patching).
* Do not monkey-patch Test::Unit or MiniTest unless we *know* it's ok.
* Add acceptance tests to demonstrate using a block as a custom parameter
matcher.
* Update Travis CI build status image to use the new build under the
freerange account.
|
2012-06-02 02:40:05 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.11.4.
= 0.11.4
* Homepage has moved to http://gofreerange.com/mocha/docs.
|
2012-04-28 17:55:03 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.11.3.
= 0.11.3
* Fix for #78 i.e. alias Object#method as Object#_method, not Object#__method__ \
which already exists as another Ruby method.
= 0.11.2
* Rails has a Request class which defines its own #method method. This broke the \
new mechanism for stubbing a method. This release includes a slightly modified \
version of fix #77 provided by @sikachu. See \
https://github.com/rails/rails/pull/5907 for further info.
= 0.11.1 ()
* In Ruby 1.8.7 methods accepting a block parameter were incorrectly restored \
without the block parameter after being stubbed. Fix for #76.
= 0.11.0 (fa601c89a7f5314dc3d258391a99c6a9e25cefb3)
* Store original method when stubbing rather than using alias_method. This fixes \
#41, #47, #74 and all tests now pass on both Ruby 1.8.7 and 1.9.3.
* Attempting to stub a method on a frozen object should fail fast. See #68.
* Prevent stubbing a method on nil by default. See #68.
* Generate documentation using YARD instead of Rdoc - removes dependency on Coderay.
* Publish documentation on Github pages instead of Rubyforge - uses rake task \
written by @tomafro.
* Remove agiledox which has outlived it's usefulness.
* Removed trailing whitespace throughout codebase.
* Add documentation for Mock#unstub.
* Improve documentation for ObjectMethods.
* Provide a way to run multiple tests within a single acceptance test method.
|
2012-03-17 15:39:20 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha to 0.10.5.
= 0.10.5 (a5a64cf9755b21d4a30e446232654d1c0fc6f151)
* Fix for issue #66 (hopefully without regressing on issue #63) - Mocha::Mock \
has Mocha::Mockery as a dependency. Stop trying to pretend otherwise. Thanks to \
@kennyj for reporting.
* Fix a bunch of warnings in Ruby 1.9. There are still the 6 test failures \
mentioned in issue #41 which I suspect are due to the introspection gem not \
being Ruby 1.9-compatible.
* Add links to README for source code & issue tracker.
* Fix for issue #67 - Make the travis-ci badge visible in the README. Thanks to \
Diego Plentz for pull request.
* Fix for issue #70 - Rename Mock#expectations to Mock#__expectations__ to avoid \
conflicts. Thanks to Jeremy Stephens for pull request.
= 0.10.4 ()
* Fix for issue #65 - expectations not being verified in subsequent tests
* Fix for issue #63 - require Mocha::Mockery at Mocha::Mock class load time and \
not on invocation of Mock#method_missing.
* Fix for issue #45 - raise ArgumentError if Mocha::ParameterMatchers#has_entry \
is given
Hash with wrong number of entries.
* Make global variable name more obscure to avoid clashes with other libraries.
* Move travis-ci-related gemfiles into their own directory.
= 0.10.3 (e7f88af8e7c3396bc85fe9f9cb9e5f5fef04bea2)
* Fix for issue #57. Gem::Requirement#=~ was only added in rubygems v1.8.0, but \
Object#=~ means the result of various monkey-patching checks is always false/nil \
for earlier versions of rubygems. However, the method it aliases #satisfied_by? \
has existed since Gem::Dependency was extracted from Gem::Version in rubygems \
v0.9.4.4, so it's much safer to use that. Thanks to fguillen for reporting and \
helping with diagnosis.
= 0.10.2 (e05d9a555f1cf97c5961900dab0d884e9753257b)
* Merge pull request #53. Unstubbing a method should not remove expectations for \
other stubbed methods. Fixes #52. Thanks to saikat.
= 0.10.1 (f631a4ba22c6ed4929c52b0520311a9a84034a20)
* Merge pull request #51. Use Gem::Requirement & Gem::Version for version \
comparison. Fixes issue #50. Thanks to meineerde.
* Fixed typo in rdoc for Mocha::ObjectMethods.
* Improve README as suggested in issue #46. Explain that Mocha must be loaded \
after test libraries and how to achieve this using Bundler.
* Merge pull request #43 - nobody expects the spanish inquisition! Thanks to \
cairo140.
* Fix for issue #39 - improve documentation for Expectation#multiple_yields.
* Fix for issue #38 where a subtle change in test-unit v2.3.0 had been missed - \
only visible in verbose mode.
* Support for MiniTest up to v2.6.2 has been verified.
* Add explicit development dependency on coderay for generating \
syntax-highlighted code examples.
|
2011-09-12 13:50:51 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha package to 0.10.0.
= 0.10.0 ()
* Add Expectation#throws to allow a stubbed method to use Kernel#throw.
* Updates for versions of Test::Unit up to and including v2.3.3 (including
patch by Jens Fahnenbruck).
* Updates for versions of MiniTest up to and including v2.5.1.
* Since the singleton method added by Mocha masks the underlying instance
method, there's no need to move it out the way and then back again. This
fixes Github issue #20, because the original method is left unchanged -
https://github.com/floehopper/mocha/issues/20 (thanks to Nick Lewis).
* Handle stubbing of a singleton method, leaving the original method unchanged
after the test.
* When stubbing an instance method that was originally defined as a singleton
method, the original method should still exist after the test.
* Fixed mis-print in Mocha::ObjectMethods#unstub documentation (patch by Gleb
Pomykalov).
* Improved test coverage around stubbing of methods defined in different ways
- this makes use of the newly extracted introspection gem (although this
means some tests are now failing in Ruby v1.9.2).
* Added configuration for Travis continuous integration.
* Make the gemspec the canonical reference and stop generating it from the
Rakefile.
* Use the built-in Bundler rake tasks for packaging the gem.
* Use the "release" rake task provided by Bundler instead of using the
Rake::XForge::Release functionality.
* Extract Object#__metaclass__ into a new metaclass gem.
* Run rake tasks without `bundle exec`.
* Avoid deprecation warning for rdoc rake task.
* Remove the `use_test_unit_gem` MOCHA_OPTION which hasn't worked since we
switched to bundler - we can now run the tests specifying a different
Gemfile instead.
* Use multiple Gemfiles seems to run Travis CI builds against multiple version
of test-unit & minitest.
|
2011-06-18 03:47:54 by Takahiro Kambe | Files touched by this commit (3) |
Log message:
Update ruby-mocha package to 0.9.12.
= 0.9.12 ()
* Make Mocha's tests pass under Ruby 1.9.2 i.e. using MiniTest. One of the main \
issues was that we were not parsing stacktraces on MiniTest errors \
comprehensively enough.
* Avoid 'circular require considered harmful' warning when running Mocha's tests \
in Ruby 1.9.2
* Make performance tests work on Ruby 1.9.2 i.e. using MiniTest.
* Declare rake as a *development* dependency with newer versions of Rubygems \
since it's only needed to carry out developer-related tasks.
= 0.9.11 (1613ed2267fef5927ea06adfdbcf512b89eadaad)
* Added explicit support for minitest v1.5.0 to v2.0.2.
* Make testable by rubygems-test.
* Update links to my blog and make other links consistent.
* Added a URI parameter matcher that ignores the order of query parameters so \
that tests can be independent of undefined hash ordering (patch by Paul \
Battley).
* Include unexpected invocation in failure message and change the language \
slightly to make the failure message less confusing. See \
http://floehopper.lighthouseapp.com/projects/22289/tickets/52.
* No need to create regular expression every time the BacktraceFilter#filtered \
method is called. See \
http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/66.
|