./devel/ruby-flexmock, Flexible mock object library for Ruby unit testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.0.1, Package name: ruby32-flexmock-3.0.1, Maintainer: pkgsrc-users

FlexMock is a flexible mocking library for use in unit testing and
behavior specification. Mocks are defined with a fluent API that
makes mock specifications easy to read and easy to remember.


Required to run:
[lang/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 68 KB

Version history: (Expand)


CVS history: (Expand)


   2023-08-26 15:29:48 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-flexmock: update to 2.3.8

2.3.8 (2023-08-13)

* remove executable flag on all lib ruby files
* in partial mocks, find the original method through metaprogramming
* CI: Drop unused Travis sudo: false directive
* Gemfile: use https for RubyGems.org
* update required ruby version to 2.2, and update Travis ruby versions
* CI: Use JRuby in the matrix
* update the links in doc/
* README: Use SVG badges
* fix: spelling of Minitest
* chore: run tests through GitHub actions
* Fixes support for minitest >= 5.19
   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
   2018-02-28 17:46:02 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-flexmock: update to 2.3.6

* fix interaction between based partials, signature matching and 'explicitly'
   2017-03-13 17:24:36 by Takahiro Kambe | Files touched by this commit (3)
Log message:
Update ruby-flexmock to 2.3.5.

2.3.2

* Make test-unit make_assertion compatible with new code.

2.3.3

* Define should_expect on partial mocks as well.
* Fix unused variable

2.3.4

* Workaround Ruby 2.0.x brokenness w.r.t. singletons of classes

2.3.5

* Avoid deprecated Fixnum warnings on Ruby 2.4.0.
* Add a LICENSE.txt file.
   2016-11-01 17:49:22 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Update ruby-flexmock to 2.3.1.

* fix mocking methods that are defined as private on Object
* remove test of experimental stuff I can't understand
* allow to stack verification contexts recursively using FlexMock.use
* add some missing tests
* fix stubbing the same method multiple times on a partial mock when
  partials_verify_signatures is set
* fix signature validation when the last positional argument of a call is
  a hash
* fix signature validation in presence of both keywords and blocks
   2016-10-20 16:36:17 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Update ruby-flexmock to 2.3.0.

2.3.0:
 - implemented validation of call arity for partial mocks. By setting
     FlexMock.partials_verify_signatures = true
   flexmock will verify on partials that the number of arguments, and the
   keyword arguments passed to the mocked call match the existing method's
   signature

2.2.0:

 - #new_instances now mocks the #initialize method instead of mocking after the
   allocation was done. This allows to do mock methods called by #initialize
   itself. Behaviour when the allocator is explicitely provided is left
   unchanged, which means that the old behaviour is still available by passing
   :new to new_instances.
   2016-10-09 16:08:19 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Update ruby-flexmock to 2.2.1.

2.2.0:

 - #new_instances now mocks the #initialize method instead of mocking after the
   allocation was done. This allows to do mock methods called by #initialize
   itself. Behaviour when the allocator is explicitely provided is left
   unchanged, which means that the old behaviour is still available by passing
   :new to new_instances.

2.1.0:

 - added `#and_iterates` to fix some shortcomings of `#and_yield` without
   breaking backward compatibility
 - strict partial mocks (and "based mocks" if \ 
`FlexMock.partials_are_based` is
   set to true) are now based on the object's singleton class, instead of its
   class.