Permalink
Switch branches/tags
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.

    dchelimsky committed Jun 23, 2012
    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)
Commits on Jun 20, 2012
Commits on Jun 15, 2012
  1. Update changelog.

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

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

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

    dchelimsky committed May 25, 2012
    Add Code Climate badge
  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

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

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

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

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

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

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

    zhangsu committed May 17, 2012
    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.
Commits on May 13, 2012
  1. Remove obsolete spec

    dchelimsky committed May 13, 2012
    - 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.
Commits on May 12, 2012
  1. Add match_array matcher method for the old =~ array matcher.

    myronmarston committed May 12, 2012
    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.
  2. Add yard docs for new modules.

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

    myronmarston committed May 11, 2012
    - 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.
  2. We can't count on hash ordering.

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

    myronmarston committed May 9, 2012
    * 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.