Path to this page:
./
devel/ruby-mocha,
Ruby library for mocking and stubbing
Branch: CURRENT,
Version: 2.5.0,
Package name: ruby32-mocha-2.5.0,
Maintainer: pkgsrc-usersMocha is a Ruby library for mocking and stubbing using a syntax
like that of JMock, and SchMock. Most commonly Mocha is used in
conjunction with Test::Unit, but it can be used in other contexts.
One of its main advantages is that it allows you to mock and stub
methods on real (non-mock) classes and instances. You can for
example stub ActiveRecord instance methods like create, save,
destroy and even class methods like find to avoid hitting the
database in unit tests.
Mocha provides a unified, simple and readable syntax for both
traditional mocking and for mocking with real objects.
Required to run:[
devel/ruby-metaclass] [
lang/ruby26-base]
Required to build:[
pkgtools/cwrappers]
Master sites:
Filesize: 66.5 KB
Version history: (Expand)
- (2024-10-27) Updated to version: ruby32-mocha-2.5.0
- (2024-07-28) Updated to version: ruby32-mocha-2.4.5
- (2024-07-20) Updated to version: ruby32-mocha-2.4.2
- (2024-06-30) Updated to version: ruby32-mocha-2.4.0
- (2024-05-26) Updated to version: ruby32-mocha-2.3.0
- (2024-05-05) Updated to version: ruby32-mocha-2.2.0
CVS history: (Expand)
2023-07-30 06:03:31 by Takahiro Kambe | Files touched by this commit (2) | |
Log message:
devel/ruby-mocha: update to 2.1.0
2.1.0 (2023-07-27)
External changes
* Fix compatibility with Minitest (#614) - thanks to @kyrofa & @manewitz for
reporting and to @zenspider for his input
Internal changes
* Update URLs for links to Ruby & MIT licenses (d6470af4)
|
2023-06-11 16:28:04 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
devel/ruby-mocha: update to 2.0.4
2.0.3 (2023-06-10)
External changes
* Fix BacktraceFilter to handle special characters (e242033f, #592) - thanks
to @casperisfine
Internal changes
* Add Ruby v3.1 to the CircleCI build (3e460489)
* DRY up regexp_matches test (ae9fed4a)
* Fix regexp_matches tests in Ruby v3.2 (26b106a5, #590)
* Use Ruby 1.9 hash syntax (8bc0ad2f, #598, #537) - thanks to @herwinw
* Simplify storage of MOCHA_OPTIONS (b70507a1, #600) - thanks to @herwinw
* Pin JRuby to v9.3.9.0 in CircleCI builds (b8e6d064, #591)
* Rubocop: enable Style/FormatStringToken cop (089a688e, #603) - thanks to
@herwinw
* Remove Ruby version check from RespondsLikeTest (21583129)
* Add Ruby v3.2 to CircleCI build (f7e17636, #601)
* Use Ruby v2.6 vs v2.2 to run lint CI job (af40b7db)
* Pin yard version to v0.9.28 to avoid ArgumentError (12f1eef7)
* Revert "Pin JRuby to v9.3.9.0 in CircleCI builds" (4f5bb2f0, #591)
* Remove invalid CircleCI token from badge URL (7078e76a)
* Revert "Pin yard version to v0.9.28 to avoid ArgumentError" \
(7c6c10c5, #609)
* Remove Google Analytics tracking code (2279c49d, #612)
* Update MIT-LICENSE.md (48162b4e)
* Update COPYING.md (f3152376)
2.0.4 (2023-06-10)
Internal changes
* Update README.md
|
2022-11-29 14:04:17 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
devel/ruby-mocha: update to 2.0.2
2.0.0 (2022-11-01)
External changes
* Remove support for Ruby v1.9 - thanks to @wasabigeek (#552)
* Support strict keyword argument matching - see docs for Expectation#with &
Configuration#strict_keyword_argument_matching=
- thanks to @wasabigeek (#446,#535,#544,#562)
* Deprecate Hash args that don't strictly match (#563,981c31be)
* Drop support for older versions of test-unit - gem versions of test-unit
earlier than v2.5.1 and versions of test-unit from the Ruby v1.8 standard
library are no longer supported (#540,969f4845)
* Drop support for older versions of minitest - versions of minitest earlier
than v3.3.0 are no longer supported (#541,ca69dc9e)
* Remove deprecated mocha/setup.rb mechanism (642a0ff4)
* Add missing docs for API#stub parameter (257b4cb4)
* Remove optional reinstatement of v1.9 behaviour (#436,#438,#569,1473ee25)
* Remove deprecated methods in Configuration (#421,e7ff7528)
* Fail fast when mock receives invocations in another test
(#440,#442,cb054d59)
* Improve docs re using matchers in Expectation#with (da7237cd)
* Expand Expectation#with docs re keyword arguments (fed6808d)
* Improve docs for strict_keyword_argument_matching (8d8f881d)
* Remove deprecated Rails plugin init.rb file (1c617175)
* Improve strict keyword argument matching deprecation warning by including
the source location of the stub definition (77c0d4cc)
* Add README section re semantic versioning (00758246)
Internal changes
* Separate linting from tests in terms of Rake tasks & CircleCI jobs
- thanks to @wasabigeek (#556)
* Remove tests specific to Ruby v1.8 behaviour (46fca7ac, 3b369e99)
* Multi-line rubocop disable in Mock#method_missing (af2194c4)
* Remove unused arg for HashMethods#mocha_inspect (4f59e27f)
* Improve test runner assertions - failure vs error (eec7200a)
* Improve test coverage of PositionalOrKeywordHash (c294fe70)
* More consistent Test::Unit & Minitest integration (27dd3817)
* Remove redundant require statements (d82218a8,fa17b114)
* Add missing require statement (73493761)
* Disable Style/Semicolon cop globally (8cd0b705)
2.0.1 (2022-11-03)
External changes
* Fix LoadError when using v2.0.0 with Ruby < v2.7 by moving declaration of
runtime dependency on ruby2_keywords gem from Gemfile to mocha.gemspec -
thanks to @mishina2228 for reporting (#581, #582, cdeb0356)
2.0.2 (2022-11-07)
External changes
* Fix regression in Mock#responds_like behaviour - thanks to
@adrianna-chang-shopify for reporting (#580,#583,ba4d619e)
|
2022-10-09 09:20:04 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
devel/ruby-mocha: update to 1.15.0
1.15.0 (2022-09-21)
External changes
* Fix examples using mock constructor with block (1cc17667)
* Add another example for API#sequence (b7a7d233, #59)
* Remove support for Ruby v1.8 (ddb5d672)
* Deprecate support for Ruby versions earlier than v2.0 - thanks to
@wasabigeek (#553, #555)
Internal changes
* Update instructions for obtaining Rubygems API key (ed9c040a)
* Consistent definitions for respond_to? methods (#533)
* Run test tasks before release tasks (92a1bc6e, #447)
* Fix test:performance Rake task (#538, #539)
* Tidying following removal of support for Ruby v1.8 - thanks to @nitishr
(#542)
* Remove ParametersMatcher from Invocation#call_description - thanks to
@wasabigeek (#543)
* Remove unnecessary splatting in Invocation - thanks to @wasabigeek (#549)
* Extract handle_method_call from method_missing - thanks to @wasabigeek
(#550)
|
2022-08-11 16:03:25 by Takahiro Kambe | Files touched by this commit (2) | |
Log message:
devel/ruby-mocha: update to 1.14.0
pkgsrc change: update HOMEPAGE.
1.14.0
External changes
* Mock#expects,#stubs should return last expectation - thanks to
@vlad-pisanov for #524 (b6b637db)
Internal changes
* Avoid breaking change in psych v4 in ruby v3.1 (08b9f4ca)
* Remove broken Dependabot badge from README (d446657a)
* Add Ruby 3.0 to the CI matrix - thanks to @mishina2228 for #526 (65bc626e)
* Move development dependencies from gemspec to Gemfile - thanks to
@mishina2228 for #527 (dd127f7b)
|
2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016) |
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
|
2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017) |
Log message:
devel: Remove SHA1 hashes for distfiles
|
2021-01-10 16:15:39 by Takahiro Kambe | Files touched by this commit (3) | |
Log message:
devel/ruby-mocha: update to 1.12.0
1.12.0 (2020-12-23)
External changes
* Various improvements to README inspired by #207 and #390 - thanks to
@nitishr for his work on #390 (fed0eee6)
* Improve documentation related to StateMachine classes - thanks to
@nitishr (#425 & #427)
* Fix regression in cardinality introduced in v1.10.0 (59454a8) and
reported in #473 - thanks to @srvance for reporting and @nitishr for
fixing (#474)
* Fix documentation for Mocha::Expectation#when - thanks to @olleolleolle
(b4f59daa & #477)
* Remove Mocha::Mock#respond_to? from documentation - thanks to @nitishr
(#480)
* Improvements to documentation for Expectation#yields & #multiple_yields
- thanks to @andyw8 for reporting in #495 (1b6571c)
* Remove documentation & tests from gem to reduce its size by over 50% -
thanks to @gabetax (#500)
* Update documentation to point to travis-ci.com instead of travis-ci.org
Internal changes
* Refactor StateMachine-related classes - thanks to @nitishr (#425 & #427)
* Remove redundant test - thanks to @nitishr (8e4f1a7c)
* Add Ruby 2.7 to Travis CI matrix - thanks to @bastelfreak (fc5ea2f2)
* Simplify Mockery - thanks to @nitishr (#449)
* Update Travis CI badge to point to main vs master branch (bd8028f8)
* Generate docs using newer version of yard (v0.9.25) (c619afac)
* Manually upgrade jquery in docs from v1.7.1 -> v1.9.0 to fix
CVE-2017-16011 (211098a5, dd5eeedb & 1b76e4d5; also see #492)
* Remove reference to non-existent jquery source map to fix error in
Chrome developer tools (20156555)
* Temporarily ignore Ruby v1.8.7 build failures (e5b9feef)
|