Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: rspec/rspec-expectations
...
head fork: rspec/rspec-expectations
Commits on Oct 16, 2010
Myron Marston myronmarston Add be_within(delta).of(expected) matcher
- Delegate be_close(expected, delta) to be_within
- Deprecate be_close(expected, delta)
- Reads much better.
- The argument ordering is clearer.
- Closes #32.
7852dbd
Myron Marston myronmarston Add cuke for be_kind_of and be_instance_of matchers.
- Closes #31.
83d28b2
David Chelimsky dchelimsky words 770ab8c
Commits on Oct 18, 2010
David Chelimsky dchelimsky update version and dependency versions 6d76c29
Commits on Oct 20, 2010
Myron Marston myronmarston Fix a few grammar/punctuation mistakes.
- Closes #34.
e5184c9
David Chelimsky dchelimsky rename feature e91c61e
Myron Marston myronmarston Add cuke for satisfy matcher. 8af9e08
Commits on Oct 21, 2010
David Chelimsky dchelimsky comment / TODO 98f61d9
Commits on Oct 22, 2010
David Chelimsky dchelimsky update dependencies across development repos 7032c39
Commits on Oct 23, 2010
David Chelimsky dchelimsky links to docs b8e248b
Myron Marston myronmarston Add cuke for exist matcher.
- Closes #39.
4a27f1f
Myron Marston myronmarston Fix matcher chaining to prevent name collisions.
Previously, #chain used #define_method on the class to define an instance method on all instances.  We want it to define the method on only this instance, so we need to delegate to the singleton class instead (which the recently added #define_method does for us!).

- Closes #38.
9fca9ea
Myron Marston myronmarston Fix `expect { ... }.to` so that it has no dependency on rspec-core an…
…d can work outside of it.
d3a6981
David Chelimsky dchelimsky update for relish c9a3033
Commits on Nov 06, 2010
Myron Marston myronmarston Raise an error if should/should_not !=/!~ is used since these operato…
…rs cannot be supported on ruby 1.8.

- Closes #33.
2d1a145
Josep M. Bach txus have_matcher - use pluralize only when ActiveSupport inflections are …
…indeed defined

- Closes #30.
cfc20db
Myron Marston myronmarston Fix throw_symbol matcher so that it no longer swallows exceptions tha…
…t occur in the proc.
6cde7f6
Myron Marston myronmarston Improve failure messages for throw_symbol matcher and add a cuke for it.
- Closes #36.
584f3f6
Commits on Nov 07, 2010
David Chelimsky dchelimsky clean up load paths in spec helper 868c3ef
David Chelimsky dchelimsky eliminate some warnings f9ff542
Myron Marston myronmarston Fix infinite recursion SystemStackError on 1.9.2.
RSpec::Matchers#method_missing calls super, and it was supering to itself infinitely because RSpec::Matchers was being included multiple times.  rspec-core now takes care of including RSpec::Matchers on its as of this commit:

rspec/rspec-core@eefc972

- Closes #40.
44909b0
David Chelimsky dchelimsky history acbfcbe
David Chelimsky dchelimsky bump to 2.1.0 a1ef6b7
David Chelimsky dchelimsky update versions for development 8729e9a
Commits on Nov 15, 2010
David Chelimsky dchelimsky simplify feature 2b7b0d8
Commits on Nov 18, 2010
David Chelimsky dchelimsky tweak (c) a2c77f9
Commits on Nov 22, 2010
Myron Marston myronmarston Add match matcher cuke. 50a3e1c
Myron Marston myronmarston Add be matcher cuke. a553cfc
Myron Marston myronmarston Remove cuke references to "should be ==" and "should be ===".
should == and should === work just as well.
831403a
Commits on Nov 25, 2010
David Chelimsky dchelimsky method_missing is private 9571f5c
David Chelimsky dchelimsky explain README links to documentation d1423b8
David Chelimsky dchelimsky what the last commit said 9344c86
David Chelimsky dchelimsky same for rdoc 3d216cc
David Chelimsky dchelimsky upgrade to cucumber 0.9.4 56bc65f
Commits on Nov 28, 2010
David Chelimsky dchelimsky prep for 2.2 release 16ca752
David Chelimsky dchelimsky bump version to 2.2 5ec714a
Commits on Nov 30, 2010
David Chelimsky dchelimsky links b6d3067
Commits on Dec 01, 2010
David Chelimsky dchelimsky bump to 2.3.0.pre 382bf52
Commits on Dec 05, 2010
Myron Marston myronmarston Fix failing spec.
We can't depend on the order of the hash key/value pairs.

- Closes #44.
- Closes #45.
a10059b
Myron Marston myronmarston Fixed spec so it runs on ruby 1.9.1.
Also fixed indentation.
6b50551
Myron Marston myronmarston No need to have separate 1.8 and 1.9 logic for checking existence of …
…method.
5356519
David Chelimsky dchelimsky expect the right message regardless of hash ordering efc8168
David Chelimsky dchelimsky clean up spec_helper 90209e1
David Chelimsky dchelimsky unless it should be if ... 1f81b11
Commits on Dec 10, 2010
David Chelimsky dchelimsky lock autotest at 4.4.5 40e7ace
Commits on Dec 11, 2010
Kenrick (Ken) Chien kchien Changed expectation to use regex.
- Closes #48.
2764780
David Chelimsky dchelimsky use ZenTest 4.4.2 instead of autotest 4441c64
Mike Sassak msassak Define include matcher as diffable
Modify the specs so they match output rather than specify it exactly.

- Closes #49.
e4921ca
David Chelimsky dchelimsky fix warnings on include spec e318249
David Chelimsky dchelimsky history 1bcd0bc
Commits on Dec 12, 2010
David Chelimsky dchelimsky align Gemfiles across rspec dev repos 6790c7c
David Chelimsky dchelimsky prep for 2.3.0 release 94a5730
Commits on Dec 14, 2010
David Chelimsky dchelimsky bump version to 2.4.0.pre d52c10e
Commits on Dec 18, 2010
David Chelimsky dchelimsky dev-support: update relish task 2b10fc0
Commits on Dec 19, 2010
Jo Liss joliss improved documentation for change method
- Closes #51.
9a704ea
David Chelimsky dchelimsky more improvments to RDoc for change matcher 9059239
David Chelimsky dchelimsky dev support: add Guardfile 3b59fc1
Commits on Dec 20, 2010
David Chelimsky dchelimsky More consistency across failure messages for operator matchers.
Also cleaned up the related cukes. There was some duplication between
the operator and "be" matcher cukes, and the latter had some examples
that I prefer to discourage.
fe8f85e
David Chelimsky dchelimsky more more consistency across failure messages for operator matchers d1566d4
David Chelimsky dchelimsky remove feature duplicated in rspec-core 8310b17
David Chelimsky dchelimsky reorg cuke features ea4dd96
Commits on Jan 02, 2011
David Chelimsky dchelimsky update expected output in cukes to align with changes in rspec-core 3b0e957
David Chelimsky dchelimsky prep for 2.4.0 release 68f857b
Commits on Jan 08, 2011
Myron Marston myronmarston Fix specs that are failing for me on MRI 1.8.7 p330.
We can't count on the order Hash#inspect prints the elements on ruby 1.8.
27ca1f4
Commits on Jan 17, 2011
Myron Marston myronmarston Fix exist matcher so that it uses either #exist? or #exists? 12d1ae3
David Chelimsky dchelimsky docs/changelog 68fff16
Commits on Feb 02, 2011
James Almond jamesalmond Improved docs for raise_error
- Closes #58.
1a60dff
David Chelimsky dchelimsky Additional improvements to raise_error matcher docs. f5ddd17
Commits on Feb 05, 2011
David Chelimsky dchelimsky update Guardfile - use actual regexps, not strings that look like them 893a7df
David Chelimsky dchelimsky .not_to in addition to .to_not
- Closes #50.
15573f9
David Chelimsky dchelimsky changelog d9154b6
David Chelimsky dchelimsky dot placement matters 6528f3f
David Chelimsky dchelimsky reduce dependency on output in cuke scenario ad6fd10
David Chelimsky dchelimsky prep for 2.5 release 3e4a46f
Commits on Feb 18, 2011
Geoffrey Byers Removed non-ascii characters from comments
- Closes #61.
8a3ee4e
David Chelimsky dchelimsky changelog 8813963
Commits on Feb 25, 2011
Myron Marston myronmarston Remove obselete file. a496a73
Commits on Feb 27, 2011
Myron Marston myronmarston Prevent SystemStackError on 1.9 when users include RSpec::Matchers in…
… an example group.

Closes #63.
80e5300
Commits on Mar 07, 2011
Myron Marston myronmarston Revert "Prevent SystemStackError on 1.9 when users include RSpec::Mat…
…chers in an example group."

This reverts commit 80e5300.

This hack didn't work as well as I thought it would, and I have fixed
the underlying issue in rspec-core by including RSpec::Matchers before
the first example group is created.
268f8c0
Commits on Mar 10, 2011
Myron Marston myronmarston Allow modules to be included in custom matchers.
Closes rspec-core #344.
a832e96
Commits on Mar 21, 2011
davisre davisre change matcher now accepts regexp in to/from
- Closes #62.
5774d5c
David Chelimsky dchelimsky better ivar names in change matcher 1dc423e
David Chelimsky dchelimsky Changlog e14e87f
Magnus Bergmark Mange Add description generation for any Has matcher a7b702d
David Chelimsky dchelimsky Changelog and a couple of more peaceful words in spec 9e3eeac
David Chelimsky dchelimsky Dup arrays and hashes in change matcher.
This fixes a bug in which expecting the contents of an array or hash to
change due to some action would fail (false negative) because the before
and after values were actually the same object.

- Closes #41
ae1c3f8
Commits on Mar 25, 2011
David Chelimsky dchelimsky upgrade cucumber and aruba 0a29866
Commits on Mar 28, 2011
Myron Marston myronmarston Fix inclusion order of RSpec::Matchers in Test::Unit and MiniTest.
Due to a bug in ruby 1.9, RSpec::Matchers must be included in the superclass (MiniTest::Unit::TestCase) before it is included in a subclass (Test::Unit::TestCase) or we may get infinite recursion and a SystemStackError from our `super` call in our method_missing hook.  See this gist for more info about the ruby 1.9 bug:

https://gist.github.com/845896

Closes #67.
790a849
Myron Marston myronmarston Changelog. bbfb723
Myron Marston myronmarston Use allocate rather than monkey patching Test::Unit::TestCase#initial…
…ize.

Thanks to @justinko for the suggestion.
37d038b
Commits on Mar 29, 2011
Myron Marston myronmarston Pull gems from github when they are not available locally on the file…
…system.
ebaf90a
Myron Marston myronmarston Add travis config file. aaf14d0
David Chelimsky dchelimsky clean const_missing backtrace 277629e
David Chelimsky dchelimsky less invasive cleansing of const_missing backtrace 733a761
Commits on Apr 03, 2011
Myron Marston myronmarston Only build with the rubies travis has available. 1aaf5a0
Commits on Apr 09, 2011
François Beausoleil francois Confirmed the doc format outputs the right values 00f014d
Justin Ko justinko Tweaks to has.feature - Closes #68 933be5b
Justin Ko justinko Add has.feature to Relish .nav 5ca17e7
David Chelimsky dchelimsky Revert the last three commits - we already have scenarios for has_FOO in
features/built-in-matchers/predicate-matchers.feature

Squashed commit of the following:

commit 521a6f025a786076f5b10beea553f74b01a17b10
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:47 2011 -0500

    Revert "Confirmed the doc format outputs the right values"

    This reverts commit 00f014d.

commit f218740f4338b2d92bf978a361f01756727f37b0
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:37 2011 -0500

    Revert "Tweaks to has.feature - Closes #68"

    This reverts commit 933be5b.

commit d8361f659f26dd011bdcdca9fc38c159ed3a13e0
Author: David Chelimsky <dchelimsky@gmail.com>
Date:   Sat Apr 9 16:37:12 2011 -0500

    Revert "Add has.feature to Relish .nav"

    This reverts commit 5ca17e7.
155e5c0
David Chelimsky dchelimsky run ci against more rubies cce5a9b
Commits on Apr 10, 2011
David Chelimsky dchelimsky update Gemfile to address build issues with 1.9.1 b66c8c3
David Chelimsky dchelimsky add travis build status 9ee29de
Commits on Apr 17, 2011
David Chelimsky dchelimsky prep for 2.6.0.rc1 87c52ac
Commits on Apr 18, 2011
David Chelimsky dchelimsky comment aruba/cukes in Gemfile b932407
David Chelimsky dchelimsky update changelog 63f0ce6
David Chelimsky dchelimsky bump to 2.6.0.rc2 d11e237
David Chelimsky dchelimsky update the changelog 8ff6095
Commits on Apr 19, 2011
David Chelimsky dchelimsky reinstate cucumber and aruba 8dc9c2c
David Chelimsky dchelimsky add matcher overview 14475f0
Commits on Apr 20, 2011
David Chelimsky dchelimsky doc updates a4ebe07
Commits on Apr 30, 2011
David Chelimsky dchelimsky prep for 2.6.0.rc3 88607b6
Commits on May 01, 2011
David Chelimsky dchelimsky bump to 2.6.0.rc4 fd11974
Commits on May 05, 2011
Anders Furseth andersfurseth Implemented matcher for Range#cover? (Ruby 1.9 only)
- Closes #70.
f726c0d
David Chelimsky dchelimsky small refactoring of cover matcher and docs dc26410
Commits on May 06, 2011
David Chelimsky dchelimsky prep for 2.6.0.rc5 ac3c317
David Chelimsky dchelimsky prep for rc6 a87a276
Commits on May 09, 2011
David Chelimsky dchelimsky even better refactoring of cover matcher 0f6cf3d
Commits on May 10, 2011
David Chelimsky dchelimsky one more bit 9bb2e79
Commits on May 12, 2011
David Chelimsky dchelimsky prep for 2.6.0 fad075c
Commits on May 17, 2011
Leif Bladt leifbladt Fixed typo in install command 91473cd
David Chelimsky dchelimsky Merge pull request #72 from leifbladt/master
Fixed typo in install command (README.md)
f36b84e
Commits on May 21, 2011
David Chelimsky dchelimsky ci: relax rake version constraint 4faaa19
Commits on May 24, 2011
Pat Maddox patmaddox HaveMatcher converts argument using #to_i (Alex Bepple & Pat Maddox) 39fc4dd
Commits on Jun 11, 2011
David Chelimsky dchelimsky ignore .rbc files 8f23b43
David Chelimsky dchelimsky fix revisionist history b4d38b4
David Chelimsky dchelimsky Fix specs left failing by 39fc4dd cd5c06e
David Chelimsky dchelimsky rake ~> 0.9 240ca4a
David Chelimsky dchelimsky remove rubygems version from gemspec b819107
David Chelimsky dchelimsky dev: add binstubs a5a223a
David Chelimsky dchelimsky ci: tell travis to use bin/rake 5513a9f
David Chelimsky dchelimsky move changelog to project root f57a594
David Chelimsky dchelimsky bump to relish 0.4 4b548f0
David Chelimsky dchelimsky dev: rake clobber:rbc task 1e001c2
David Chelimsky dchelimsky ci: add --trace to rake command 1f17f2a
David Chelimsky dchelimsky remove broken cuke monkey patch 27c1205
Myron Marston myronmarston Improve the failure messages for the have/has predicate matcher.
- For a case like `foo.should have_some_stuff`, "expected #has_some_stuff? to..." is better than "expected #has_some_stuff?(nil) to...".  The nil is confusing since you didn't pass any arguments.
- For a case like `foo.should have_each_of(:a, 7, "bar")`, "expected #has_each_of?(:a, 7, "bar")" is better than "expected #has_each_of?(:a)".  It's best to include all the arguments rather than just the first one.
e92aad9
Myron Marston myronmarston Update list of built in matchers. 6bf12f2
David Chelimsky dchelimsky dev: remove rdoc dep 9f107fb
David Chelimsky dchelimsky ignore yard artifacts 7d50bd6
David Chelimsky dchelimsky update binstubs 58bf49f
Commits on Jun 13, 2011
David Chelimsky dchelimsky dev: better constraints on files in gemspec 2c55b13
Commits on Jun 14, 2011
David Chelimsky dchelimsky doc: updates for yard ba6456d
Jean Boussier byroot fix: missing underscores escaping in "have" feature description c539767
David Chelimsky dchelimsky Merge pull request #77 from byroot/patch-1
fix: missing underscores escaping in "have" feature description
37864d9
David Chelimsky dchelimsky changelog 1b5edc5
David Chelimsky dchelimsky remove .document/add .yardopts f0efdcf
David Chelimsky dchelimsky doc: adjustments for yard d7d87d8
Commits on Jun 21, 2011
David Chelimsky dchelimsky ci: exclude local dev gems from travis bundle fe10f0b
David Chelimsky dchelimsky dev: bump aruba timeout to 5 seconds c0a318a
David Chelimsky dchelimsky dev: exclude rcov for ruby 1.9 5ee3840
Commits on Jun 23, 2011
David Chelimsky dchelimsky dev: remove bin/ from git d5afa09
David Chelimsky dchelimsky bump cukes to 1.0 084c6b1
Commits on Jul 02, 2011
David Chelimsky dchelimsky Eliminate some warnings and align some failure messages in the process. 039baf5
David Chelimsky dchelimsky doc: tweaks 00fe65f
Commits on Jul 14, 2011
David Chelimsky dchelimsky Fix docs for 'should be' (passes if truthy, not 'not nil')
- Fixes #84.
3d8cfc7
Commits on Jul 30, 2011
Peter van Hardenberg pvh if the sort fails, rescue and return the array as-is
- Closes #81.
- Closes #83.
d49eba7
Commits on Aug 18, 2011
MOROHASHI Kyosuke moro fix typo 393f15e
Justin Ko justinko Merge pull request #87 from moro/cover-matcher-documentation-typo-fix
fix typo in 'cover' matchers documentation
0b63bf4
Commits on Aug 26, 2011
David Chelimsky dchelimsky improve cuke for raise_error matcher a541a75
Commits on Sep 27, 2011
Matthew Bellantoni mjbellantoni Make Matchers::Have recognize #count in collection objects.
- Closes #91.
a715f88
David Chelimsky dchelimsky refactor: tease apart Have#matches?
- #91.
149a939
David Chelimsky dchelimsky changelog
- #91.
d8edde0
David Chelimsky dchelimsky no reason to use __send__ for public methods eb3886a
David Chelimsky dchelimsky ci: stick to travis-supported rubies 90eeb1f
Commits on Sep 30, 2011
David Chelimsky dchelimsky copy instance_eval_with_args from rspec-core (a bit cleaner) 2102bcd
Commits on Oct 04, 2011
David Chelimsky dchelimsky ci: bump the aruba timeout for jruby e175d8a
Commits on Oct 06, 2011
David Chelimsky dchelimsky Change matcher dups Enumerable before the action, supporting custom
Enumerable types like CollectionProxy in Rails.

- Closes rspec/rspec-rails#411
ea01a6f
David Chelimsky dchelimsky ci: fix travis png url b8bafca
Commits on Oct 09, 2011
David Chelimsky dchelimsky ignore .rbx (rubinius-generated files) 2487077
David Chelimsky dchelimsky bump to 2.7.0.rc1 13cc663
David Chelimsky dchelimsky bump relish version to ~> 0.5.0 40d5ba9
Commits on Oct 16, 2011
David Chelimsky dchelimsky cleanup and add some rdoc 4638609
David Chelimsky dchelimsky update changelog for 2.7.0 release 32f2439
David Chelimsky dchelimsky bump version to 2.7.0 cf9e77f
David Chelimsky dchelimsky fix formatting problems in the changelog 73606f7