Permalink
Commits on Jul 7, 2012
  1. bump to 2.11.0

    dchelimsky committed Jul 7, 2012
  2. space, the final frontier

    dchelimsky committed Jul 7, 2012
  3. add travis badge to README

    dchelimsky committed Jul 7, 2012
Commits on Jun 25, 2012
Commits on Jun 23, 2012
  1. Change BaseMatcher to a class.

    It was a module, but it was really acting as a base class (it was even
    in the name).
    
    Very slightly more efficient (see benchmarks/include_v_superclass.rb)
    dchelimsky committed Jun 23, 2012
Commits on Jun 20, 2012
Commits on Jun 15, 2012
  1. Update changelog.

    [ci skip]
    myronmarston committed Jun 15, 2012
  2. Add #add_should_and_should_not to configuration API.

    This allows users to manually add these methods to proxy objects that do not have them.
    
    Closes #114.
    myronmarston committed Jun 15, 2012
Commits on Jun 14, 2012
Commits on Jun 7, 2012
Commits on Jun 5, 2012
  1. Add more docs on syntax configuration.

    Closes #149.
    myronmarston committed Jun 5, 2012
Commits on May 25, 2012
  1. Merge pull request #146 from brynary/codeclimate-badge

    Add Code Climate badge
    dchelimsky committed May 25, 2012
  2. Add Code Climate badge

    brynary committed May 25, 2012
Commits on May 22, 2012
  1. More changelog updates.

    myronmarston committed May 22, 2012
  2. Update changelog.

    myronmarston committed May 22, 2012
  3. Merge pull request #119 from rspec/expect_syntax

    Add support for `expect(value)` syntax.
    myronmarston committed May 22, 2012
  4. refactor built-in matchers

    Removed default initialize and matches? from the BaseMatcher and added
    explicit initialization where needed.
    dchelimsky committed May 22, 2012
  5. dev: --backtrace

    dchelimsky committed May 22, 2012
Commits on May 21, 2012
  1. refactor BeWithin to be more self-contained.

    More explicit and consistent in dealing with instance variables rather
    than relying on knowledge of how BaseMatcher handles them.
    dchelimsky committed May 21, 2012
Commits on May 17, 2012
  1. changelog

    justinko committed May 17, 2012
  2. Merge pull request #145 from zhangsu/master

    Fix confusing error message in `be_within`
    justinko committed May 17, 2012
  3. Fix confusing error message in `be_within`

    This is a patch for the following issue:
    
    #92
    
    It is possible to have duck typing for numerical operations, but the minus
    sign is often used for other operations as well such as the set
    difference that Array#- performs. In that case, even if it does not fail
    on the :- method, it will probably fail on the subsequent :abs and :<=
    calls.
    zhangsu committed May 17, 2012
Commits on May 13, 2012
  1. Remove obsolete spec

    - it wasn't running because it was dynamically bound to classes that
      were no longer being found.
    - it was specifying an age-old protocol that isn't used by
      rspec-expectations, so it would never be used.
    dchelimsky committed May 13, 2012
Commits on May 12, 2012
  1. Add match_array matcher method for the old =~ array matcher.

    This is needed because we've decided not to support operator matchers off of `expect(value).to`, and `match_array` is the best name we've come up with for it.
    myronmarston committed May 12, 2012
  2. Add yard docs for new modules.

    [ci skip]
    myronmarston committed May 12, 2012
Commits on May 11, 2012
  1. Cleanup code a bit.

    - Remove bang from method...as @justinko rightly pointed out, there's no corresponding bangless method so it didn't really follow convention here.
    - Use an early guarded return.
    myronmarston committed May 11, 2012
  2. We can't count on hash ordering.

    ...so use an array of tuples instead.
    
    Closes #144.
    myronmarston committed May 11, 2012
Commits on May 10, 2012
  1. Refactor enabling/disabling of expectation syntaxes.

    * Fix build on JRuby. Our sandboxing via forking didn't work
      on JRuby since fork isn't available. On JRuby we just
      re-enable all syntaxes at the end of each sandboxed example.
    * Testing this revealed that the way I was restoring a disabled
      syntax didn't always work. Based on the random order, sometimes
      spec/rspec/matchers/be_spec.rb:427 would fail with
      "TypeError: bind argument must be an instance of Kernel".
    * Refactored main logic into new syntax module, that can add
      the syntaxes to any class or module. Kernel/RSpec::Matcher
      defaults are provided for convenience. This also fixes the
      bind failure, by redefining the methods anew rather than
      re-binding the old ones.
    myronmarston committed May 9, 2012