Switch branches/tags
Commits on Apr 11, 2012
Commits on Apr 10, 2012
  1. Raise an error if a single-yield matcher is used with a multi-yield m…

    Only the yield_successive_args matcher is designed for the multi-yield case.
    myronmarston committed Apr 10, 2012
  2. Refactor yield matchers a bit.

    This allows the YieldProbe to take care of defining the probe block, and simplifies the #matches? methods.
    myronmarston committed Apr 10, 2012
  3. Raise an error if expect block arg isn't passed on as a block.

    Otherwise, the matcher is unable to detect anything about if the method-under-test yields, and the user may get false positives.
    myronmarston committed Apr 10, 2012
Commits on Apr 1, 2012
  1. Add API docs for yield matchers.

    Cukes are still to come.
    myronmarston committed Apr 1, 2012
Commits on Mar 31, 2012
  1. Raise an error if a yield matcher is used w/ an expect block that acc…

    …epts no args.
    The expect block must accept an arg, and pass it on to the method-under-test as a block, in order for these yield matchers to work properly.  Since this is atypical for an expect block, this error will help guide people when they use these matchers incorrectly.
    myronmarston committed Mar 31, 2012
  2. Fix yield matchers to handle instance_eval.

    It's debatable if instance_eval'ing a block can be considered yielding, but it's important that we use local variables in the lambdas rather than instance variables, because we don't want to modify the state of the receiver of #instance_eval.
    myronmarston committed Mar 31, 2012
  3. Remove diffability from yield matchers for now.

    I'm not sure it makes sense given that they don't match strictly but instead match using === or ==.
    myronmarston committed Mar 31, 2012
Commits on Mar 30, 2012
  1. Match yielded args with == or ===.

    Previously, this expectation failed:
      expect { |b| _yield_with_args(String, Fixnum, &b) }.to yield_with_args(String, Fixnum)
    ...because Class=== returns false when given itself.
    myronmarston committed Mar 30, 2012
Commits on Mar 29, 2012
Commits on Mar 27, 2012
Commits on Mar 25, 2012
  1. Changelog for #125 [ci skip]

    dchelimsky committed Mar 25, 2012
Commits on Mar 23, 2012
Commits on Mar 22, 2012
Commits on Mar 17, 2012
  1. dev: add a script to download ruby-debug-base19-0.11.26.gem and linec…

    …ache19-0.5.13.gem to a local cache
    [ci skip]
    dchelimsky committed Mar 17, 2012
  2. bump to 2.9.0

    dchelimsky committed Mar 17, 2012
Commits on Mar 12, 2012
  1. bump to 2.9.0.rc2

    dchelimsky committed Mar 12, 2012
  2. Fix file list in gemspec.

    - Fixes #121
    dchelimsky committed Mar 12, 2012
  3. bump to 2.9.0.rc1

    dchelimsky committed Mar 12, 2012
Commits on Feb 6, 2012
  1. Changlog for #115

    dchelimsky committed Feb 6, 2012
Commits on Jan 28, 2012
  1. Remove relative links from README, since they can't work correctly on

    github and
    - Fixes #113.
    dchelimsky committed Jan 28, 2012
Commits on Jan 24, 2012
  1. Dup the instance of a DSL generated matcher so its state is not changed

    by subsequent invocations.
    - Fixes #112.
    dchelimsky committed Jan 24, 2012
Commits on Jan 12, 2012
  1. Perf: Set#include? is O(1); Array#include? is O(N).

    See the included benchmarks for actual benchmarks against a collection of 7 values like we have here.
    myronmarston committed Jan 12, 2012