Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: yield_matchers
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…

    myronmarston authored
    …ethod.
    
    Only the yield_successive_args matcher is designed for the multi-yield case.
  2. @myronmarston

    Refactor yield matchers a bit.

    myronmarston authored
    This allows the YieldProbe to take care of defining the probe block, and simplifies the #matches? methods.
  3. @myronmarston

    Raise an error if expect block arg isn't passed on as a block.

    myronmarston authored
    Otherwise, the matcher is unable to detect anything about if the method-under-test yields, and the user may get false positives.
  4. @myronmarston
Commits on Apr 1, 2012
  1. @myronmarston

    Add API docs for yield matchers.

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

    Raise an error if a yield matcher is used w/ an expect block that acc…

    myronmarston authored
    …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.
  3. @myronmarston

    Fix yield matchers to handle instance_eval.

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

    Remove diffability from yield matchers for now.

    myronmarston authored
    I'm not sure it makes sense given that they don't match strictly but instead match using === or ==.
  5. @myronmarston
  6. @myronmarston
Commits on Mar 30, 2012
  1. @myronmarston
  2. @myronmarston
  3. @myronmarston

    Match yielded args with == or ===.

    myronmarston authored
    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.
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 authored
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…

    dchelimsky authored
    …ache19-0.5.13.gem to a local cache
    
    [ci skip]
  7. @dchelimsky

    bump to 2.9.0

    dchelimsky authored
Commits on Mar 12, 2012
  1. @dchelimsky

    bump to 2.9.0.rc2

    dchelimsky authored
  2. @dchelimsky

    Fix file list in gemspec.

    dchelimsky authored
    - Fixes #121
  3. @dchelimsky

    bump to 2.9.0.rc1

    dchelimsky authored
Commits on Feb 6, 2012
  1. @dchelimsky

    Changlog for #115

    dchelimsky authored
  2. @dchelimsky
Commits on Jan 28, 2012
  1. @dchelimsky

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

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

    Dup the instance of a DSL generated matcher so its state is not changed

    dchelimsky authored
    by subsequent invocations.
    
    - Fixes #112.
Commits on Jan 12, 2012
  1. @myronmarston

    Perf: Set#include? is O(1); Array#include? is O(N).

    myronmarston authored
    See the included benchmarks for actual benchmarks against a collection of 7 values like we have here.
Something went wrong with that request. Please try again.