./devel/ruby-mocha, Ruby library for mocking and stubbing

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


Branch: CURRENT, Version: 1.8.0, Package name: ruby24-mocha-1.8.0, Maintainer: pkgsrc-users

Mocha 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/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: ca935501ed99aa4239003f038d2479e78d93f190
RMD160: cc1a4e1414d31e1d533203715f96fe756b47bb91
Filesize: 218.5 KB

Version history: (Expand)


CVS history: (Expand)


   2019-01-20 14:51:15 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-mocha: update to 1.8.0

## 1.8.0

* Constrain rubocop version to avoid breaking Travis CI builds (05e507f5)
* Avoid calling Kernel#format from ObjectMethods#mocha_inspect - thanks to \ 
@hoffmanilya (#345)
* Fix build matrix script (#346)
* Avoid deprecation warning in gemspec (4976e0bc)
* Removed link to documentation translation (ef428ea2)
* Don't use the new bundler v2 in builds (683ded9b)
* Moved documentation from https://gofreerange.com/mocha/docs to \ 
https://mocha.jamesmead.org/ \ 
[683ded...a17fde](https://github.com/freerange/mocha/comp … d...a17fde)
   2018-09-23 16:52:02 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-mocha: update to 1.7.0

## 1.7.0

* Update Ruby & JRuby versions in Travis CI config (9bf55631 & 3883af7e)
* Simplify gemspec (63744f86)
* Add rubocop and fix most cop violations (#341)
* Use Kernel#warn for deprecations - thanks to @etiennebarrie (#333, 196970a)

## 1.6.0

* Fix subtle bug in setting correct visibility of stubbed module methods on \ 
`Kernel` or `Object` - thanks to @chrisroos (#295)
* Avoid mocks for partial mocking leaking into subsequent tests - thanks to \ 
@skliew for reporting (#331)
* Remove OpenCollective badge, backers & sponsors (a283a079)
* Change gem version badge to SVG format and add SemVer stability badge - thanks \ 
to @greysteil (#335)
* Improve documentation for Configuration (#236)
   2018-05-06 03:56:35 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-mocha: update to 1.5.0

## 1.5.0

* Prevent use of Mocha outside the context of a test/example - thanks to @andyw8 \ 
& @lzap (#327)
   2018-03-23 14:57:53 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-mocha: update to 1.4.0

1.4.0 (2018/03/20)

* Fix deprecation warning for assert_nil in ClassMethodTest (#308 & #309)
* Display file and line number in deprecation warning - thanks to @chrisarcand
  (#310, #312 & #313)
* Rename mocha/mini_test.rb to mocha/minitest.rb - thanks to @grosser (#320 &
  #322)
* Fix warning when delegating to mock in Ruby 2.4 - thanks to @tjvc (#321 &
  #323)
* Updates to Travis CI configuration (73af600..9732726 & 0426e5e)
   2017-08-31 17:18:09 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-mocha to 1.3.0.

## 1.3.0

* Ensure all tests run individually - thanks to @chrisroos (#267)
* Update Travis CI build status badge to show master branch status (#264)
* Correct RSpec section of the README - thanks to @myronmarston (0cc039c8)
* Fix pretty printing of quotes in `String#mocha_inspect` (#215 & #223)
* Add release instructions to README - thanks to @chrisroos (70a5febd &
  3c664df7)
* Require at least Ruby v1.8.7 in gemspec - thanks to @knappe (3e20be8e)
* Remove redundant InstanceMethod#method_exists? - thanks to @chrisroos
  (8f58eddf)
* Reduce risk of hitting bug 12832 in Ruby v2.3 - thanks to @chrisroos (#277 &
  eca7560c)
* Fix JRuby build - thanks to @headius (jruby/jruby#4250) & @chrisroos (#274)
* Add latest stable version of JRuby to Travis CI build matrix (#288)
* Fix Ruby v1.8.7 builds on Travis CI (928b5a40 & 460dce5b)
* Deprecate passing block to mock object constructor (#290)
* Add a known issue to README for Ruby bug 12876 (#276)
* Add Ruby 2.4 and ruby-head to Travis CI build matrix - thanks to @junaruga
  (#297)
* Fix `Mocha::ParameterMatchers#includes` for `Array` values - thanks to
  @timcraft (#302)
* Use faster container-based virtual environments for Travis CI builds (#305)
* Rename `Mocha::ParameterMatchers::QueryStringMatches` to `QueryString` (#306)
* Handle blank parameter value for query string matcher - thanks to @weynsee
  (#303 & #304)
* Rename `Mocha::ParameterMatchers::QueryString` -> `EquivalentUri` (#307)
* Use `do ... end` instead of `{ ... }` in acceptance tests - thanks to
  @chrisroos (#294)
   2016-10-20 16:40:39 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-mocha to 1.2.1.

## 1.2.1

* Fixed #272. Workaround Ruby bug 12832 which caused interpreter to hang. See \ 
https://bugs.ruby-lang.org/issues/12832. Thanks to @chrisroos & @petems \ 
(6f1c8b9b, #273).

## 1.2.0

* Always use prepended module to stub class & instance methods for Ruby v2+ \ 
- thanks to @grosser & @chrisroos (43d56671, #244)
* Always use prepended module to stub AnyInstance methods in Ruby v2+ - thanks \ 
to @chrisroos (#262)
* Always set visibility of stub method to match stubbed method on included \ 
module - thanks to @grosser & @chrisroos (e87c03b0, #248)
* Always set visibility to stub method to match stubbed method on superclass - \ 
thanks to @chrisroos (38d902ad)
* Allow stubbing of method to which any instance responds (#200)
* Allow `includes` matcher to take matcher arguments - thanks to @lazyatom (#217)
* Avoid exception in older version of Rubygems - thanks to @chrisroos (78d930a7)
* Add licenses to gemspec as requested by @coreyhaines (#201)
* Fix typo in README - thanks to @jaredbeck (6119460d)
* Added section about using Mocha with RSpec & Rails to README (#221)
* Fix documentation for Mocha::API#stub method - thanks to @raeno (599b1dcd)
* Added backers and sponsors from OpenCollective - thanks to @piamancini (#253)
* Fix typo in docs for equals - thanks to @alexcoco (#254)
* Add known issue for Ruby v1.8 to README - thanks to @chrisroos (2c642096)
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-02-01 15:50:43 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-mocha to 1.1.0.

# Release Notes

## 1.1.0

* Set visibility of any instance stub method.
* Stub methods with a prepended method if there are other prepended methods. \ 
Thanks to @mrsimo.
* Improve docs for `Mock#responds_like` & `#responds_like_instance_of`.
* Use GitHub convention for instructions on contributing to Mocha.
* Fix typos in docs. Thanks to @10io