Next | Query returned 45 messages, browsing 41 to 50 | previous

History of commit frequency

CVS Commit History:


   2009-06-12 15:24:27 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Add a comment to last patch.
   2009-06-12 13:48:40 by Takahiro Kambe | Files touched by this commit (3)
Log message:
* Fix build problem with new Rubygems by removing an obsolete method call.
* Add LICENSE.

No PKGREVISION bump since there is no change with built package.
   2008-09-15 10:49:50 by Takahiro Kambe | Files touched by this commit (3)
Log message:
Update ruby-mocha package to 0.9.1.

= 0.9.1 (r349)

* Fixed bug #21465 - expects & stubs should support method names as strings \ 
(as well as symbols) or fail fast. Convert all expectation method names to a \ 
symbol in case they were supplied as a string.
* By removing Mock#unexpected_method_called we reduce the number of methods \ 
vulnerable to the problem that surfaced in bug #21563.
* Fix bug #21563 - stubbing 'verified?' method is unsafe. Instance method names \ 
on the Mock class should be more obscure.
* Performance improvement. StubbaExampleTest goes twice as fast on my local machine.
* Added primitive performance test to default rake task.
* Fix format of case statements which don't work in Ruby 1.9 and make others \ 
consistent.
* There is no point in running (potentially expensive) checks if configuration \ 
is set to allow such checks to fail. This is a relatively quick fix in response \ 
to Chris McGrath's performance problems.
* Fix for bug #21161 - 'uninitialized constant Deprecation in stubba.rb'.
* It's more readable to talk about 'once' and 'twice' rather than '1 time' and \ 
'2 times'.
* Fix bug #20883 - never should raise when called to prevent follow up errors. \ 
Fail fast when there are no matching invokable expectations and handle the \ 
stub_everything case sensibly. This might not be entirely backwards compatible, \ 
but I think the benefits outweigh the risks. The most likely change is that a \ 
test that was already failing will now fail faster, which doesn't seem so awful.

= 0.9.0 (r316)

* Configurable warnings or errors
  * when a method on a non-public method is stubbed
  * when a method on a non-existent method is stubbed
  * when a method on a non-mock object is stubbed
  * when a method is stubbed unnecessarily (i.e. the stubbed method is not \ 
called during the test)

* Improved error messages
  * User-friendly list of unsatisfied expectations, satisfied expectations and \ 
state machines.
  * Improved readability of cardinality description.
  * Display sensible failure message for any_instance expectations e.g. \ 
"#<AnyInstance:Foo>.bar - expected calls: 1, actual calls: 0"

* Parameter matchers
  * New to this release
    * optionally (allows matching of optional parameters if available)
    * yaml_equivalent (allows matching of YAML that represents the specified object)
    * responds_with (tests the quack not the duck)
  * Nesting of parameter matchers is now supported.

* Optional block passed into mock initializer is evaluated in the context of the \ 
new mock instance and can be used as a shortcut to set up expectations.

* Added JMock-style sequences for constraining the order of expected \ 
invocations. See Standalone#sequence and Expectation#in_sequence.

* Added JMock-style states for constraining the order of expected invocations. \ 
See Standalone#states, Expectation#then, Expectation#when and StateMachine.

* Compatibility with versions of Ruby
  * Compatibility with Ruby v1.9. All test errors and warnings fixed.
  * Nasty fix so that TestCaseAdaptor works consistently with earlier versions \ 
of Test::Unit as well as more recent versions.
  * Added platform to gem specification to avoid bug in rubygems 0.9.5 - see \ 
http://www.dcmanges.com/blog/rubygems-0-9-5-platform-bug and \ 
http://rubygems.org/read/chapter/20#platform.
  * Make ExpectationRaiser deal with subclasses of Interrupt which seem to need \ 
a message supplied in the raise statement in Ruby 1.8.6 (but not 1.8.4 or 1.9). \ 
Not sure this is really Mocha's responsibility.

* Added deprecation warning in stubba.rb which is no longer needed and will be \ 
removed.

* Supply positioning information to evals to improve any error messages. See \ 
http://ola-bini.blogspot.com/2008/01/ruby-antipattern-using-eval-without.html

* Bug fixes
  * 18914 in revision 296 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=18914&group_id=1917&atid=7477
  * 18917 in revision 295 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=18917&group_id=1917&atid=7477
  * 18336 in revision 287 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=18336&group_id=1917&atid=7477
  * 17835 in revision 255 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=17835&group_id=1917&atid=7477
  * 17412 in revision 242 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=17412&group_id=1917&atid=7477
  * 15977 in revision 198 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=15977&group_id=1917&atid=7477
  * 11885 in revision 156 - \ 
http://rubyforge.org/tracker/index.php?func=detail&aid=11885&group_id=1917&atid=7477
   2008-04-07 02:38:28 by Stoned Elipot | Files touched by this commit (1)
Log message:
Remove file wrongly imported
   2008-04-07 02:32:28 by Stoned Elipot | Files touched by this commit (5) | Imported package
Log message:
Initial import of ruby-mocha as version 0.5.6 into the NetBSD
Packages Collection.

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.


Next | Query returned 45 messages, browsing 41 to 50 | previous