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

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


Branch: CURRENT, Version: 2.3.5, Package name: ruby22-flexmock-2.3.5, 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/ruby22-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 0cf3a43bdf9f2ee94ac2c0219381af91603f2da8
RMD160: 6d51911d115b43a83b580d272ed67e6b7e3bd9f7
Filesize: 66 KB

Version history: (Expand)


CVS history: (Expand)


   2017-03-13 17:24:36 by Takahiro Kambe | Files touched by this commit (3) | Package updated
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) | Package updated
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) | Package updated
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) | Package updated
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.
   2016-03-03 20:42:30 by Sergey Svishchev | Files touched by this commit (13)
Log message:
Avoid build failures when chmod respects umask, and 'chmod -x' thus does
not clear all bits.  (Can happen on Linux --
https://bugs.launchpad.net/ubuntu/+sour … +bug/67583)
   2016-02-16 16:02:45 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-flexmock to 2.0.4.

* auto-mock #kind_of? as well as #class on strict mocks.
   2015-12-12 15:26:38 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-flexmock to 2.0.3.

* Fixed infinite recursive call for rspec check
* fix strict mocks of BasicObject
* minitest: do filter assertion backtraces
* auto-mock #kind_of? as well as #class on strict mocks
   2015-11-29 14:58:33 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-flexmock to 2.0.2.

* Avoid infinite recursion when a mocked method is called within #inspect.
* Remove duplicate method SpyDescribers.call_description / FlexMock.format_call.