Skip to content
Commits on Apr 11, 2012
  1. @myronmarston
Commits on Apr 10, 2012
  1. @myronmarston

    Raise an error if a single-yield matcher is used with a multi-yield m…

    …ethod.
    
    Only the yield_successive_args matcher is designed for the multi-yield case.
    myronmarston committed Apr 10, 2012
  2. @myronmarston

    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. @myronmarston

    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 9, 2012
  4. @myronmarston
Commits on Apr 1, 2012
  1. @myronmarston

    Add API docs for yield matchers.

    Cukes are still to come.
    myronmarston committed Mar 31, 2012
Commits on Mar 31, 2012
  1. @myronmarston
  2. @myronmarston

    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 30, 2012
  3. @myronmarston

    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 30, 2012
  4. @myronmarston

    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 30, 2012
  5. @myronmarston
  6. @myronmarston
Commits on Mar 30, 2012
  1. @myronmarston
  2. @myronmarston
  3. @myronmarston

    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 29, 2012
Commits on Mar 29, 2012
  1. @myronmarston
Commits on Mar 27, 2012
  1. @myronmarston
Commits on Mar 25, 2012
  1. @dchelimsky

    Changelog for #125 [ci skip]

    dchelimsky committed Mar 24, 2012
Commits on Mar 23, 2012
  1. @justinko
Commits on Mar 22, 2012
  1. @justinko
Commits on Mar 17, 2012
  1. @dchelimsky
  2. @dchelimsky
  3. @dchelimsky
  4. @dchelimsky
  5. @dchelimsky
  6. @dchelimsky

    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
  7. @dchelimsky

    bump to 2.9.0

    dchelimsky committed Mar 17, 2012
Commits on Mar 12, 2012
  1. @dchelimsky

    bump to 2.9.0.rc2

    dchelimsky committed Mar 12, 2012
  2. @dchelimsky

    Fix file list in gemspec.

    - Fixes #121
    dchelimsky committed Mar 12, 2012
  3. @dchelimsky

    bump to 2.9.0.rc1

    dchelimsky committed Mar 11, 2012
Commits on Feb 6, 2012
  1. @dchelimsky

    Changlog for #115

    dchelimsky committed Feb 6, 2012
  2. @dchelimsky
Commits on Jan 28, 2012
  1. @dchelimsky

    Remove relative links from README, since they can't work correctly on

    github and rubydoc.info.
    
    - Fixes #113.
    dchelimsky committed Jan 28, 2012
Commits on Jan 24, 2012
  1. @dchelimsky

    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. @myronmarston

    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 11, 2012
Something went wrong with that request. Please try again.