Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rspec/rspec-expectations
...
head fork: rspec/rspec-expectations
This comparison is big! We're only showing the most recent 250 commits
Commits on Mar 21, 2011
@Mange Mange Add description generation for any Has matcher a7b702d
@dchelimsky dchelimsky Changelog and a couple of more peaceful words in spec 9e3eeac
@dchelimsky 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
@dchelimsky dchelimsky upgrade cucumber and aruba 0a29866
Commits on Mar 28, 2011
@myronmarston 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
@myronmarston myronmarston Changelog. bbfb723
@myronmarston myronmarston Use allocate rather than monkey patching Test::Unit::TestCase#initial…
…ize.

Thanks to @justinko for the suggestion.
37d038b
Commits on Mar 29, 2011
@myronmarston myronmarston Pull gems from github when they are not available locally on the file…
…system.
ebaf90a
@myronmarston myronmarston Add travis config file. aaf14d0
@dchelimsky dchelimsky clean const_missing backtrace 277629e
@dchelimsky dchelimsky less invasive cleansing of const_missing backtrace 733a761
Commits on Apr 03, 2011
@myronmarston myronmarston Only build with the rubies travis has available. 1aaf5a0
Commits on Apr 09, 2011
@francois francois Confirmed the doc format outputs the right values 00f014d
@justinko justinko Tweaks to has.feature - Closes #68 933be5b
@justinko justinko Add has.feature to Relish .nav 5ca17e7
@dchelimsky 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
@dchelimsky dchelimsky run ci against more rubies cce5a9b
Commits on Apr 10, 2011
@dchelimsky dchelimsky update Gemfile to address build issues with 1.9.1 b66c8c3
@dchelimsky dchelimsky add travis build status 9ee29de
Commits on Apr 17, 2011
@dchelimsky dchelimsky prep for 2.6.0.rc1 87c52ac
Commits on Apr 18, 2011
@dchelimsky dchelimsky comment aruba/cukes in Gemfile b932407
@dchelimsky dchelimsky update changelog 63f0ce6
@dchelimsky dchelimsky bump to 2.6.0.rc2 d11e237
@dchelimsky dchelimsky update the changelog 8ff6095
Commits on Apr 19, 2011
@dchelimsky dchelimsky reinstate cucumber and aruba 8dc9c2c
@dchelimsky dchelimsky add matcher overview 14475f0
Commits on Apr 20, 2011
@dchelimsky dchelimsky doc updates a4ebe07
Commits on Apr 30, 2011
@dchelimsky dchelimsky prep for 2.6.0.rc3 88607b6
Commits on May 01, 2011
@dchelimsky dchelimsky bump to 2.6.0.rc4 fd11974
Commits on May 05, 2011
@andersfurseth andersfurseth Implemented matcher for Range#cover? (Ruby 1.9 only)
- Closes #70.
f726c0d
@dchelimsky dchelimsky small refactoring of cover matcher and docs dc26410
Commits on May 06, 2011
@dchelimsky dchelimsky prep for 2.6.0.rc5 ac3c317
@dchelimsky dchelimsky prep for rc6 a87a276
Commits on May 09, 2011
@dchelimsky dchelimsky even better refactoring of cover matcher 0f6cf3d
Commits on May 10, 2011
@dchelimsky dchelimsky one more bit 9bb2e79
Commits on May 12, 2011
@dchelimsky dchelimsky prep for 2.6.0 fad075c
Commits on May 17, 2011
@leifbladt leifbladt Fixed typo in install command 91473cd
@dchelimsky dchelimsky Merge pull request #72 from leifbladt/master
Fixed typo in install command (README.md)
f36b84e
Commits on May 21, 2011
@dchelimsky dchelimsky ci: relax rake version constraint 4faaa19
Commits on May 24, 2011
@patmaddox patmaddox HaveMatcher converts argument using #to_i (Alex Bepple & Pat Maddox) 39fc4dd
Commits on Jun 11, 2011
@dchelimsky dchelimsky ignore .rbc files 8f23b43
@dchelimsky dchelimsky fix revisionist history b4d38b4
@dchelimsky dchelimsky Fix specs left failing by 39fc4dd cd5c06e
@dchelimsky dchelimsky rake ~> 0.9 240ca4a
@dchelimsky dchelimsky remove rubygems version from gemspec b819107
@dchelimsky dchelimsky dev: add binstubs a5a223a
@dchelimsky dchelimsky ci: tell travis to use bin/rake 5513a9f
@dchelimsky dchelimsky move changelog to project root f57a594
@dchelimsky dchelimsky bump to relish 0.4 4b548f0
@dchelimsky dchelimsky dev: rake clobber:rbc task 1e001c2
@dchelimsky dchelimsky ci: add --trace to rake command 1f17f2a
@dchelimsky dchelimsky remove broken cuke monkey patch 27c1205
@myronmarston 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
@myronmarston myronmarston Update list of built in matchers. 6bf12f2
@dchelimsky dchelimsky dev: remove rdoc dep 9f107fb
@dchelimsky dchelimsky ignore yard artifacts 7d50bd6
@dchelimsky dchelimsky update binstubs 58bf49f
Commits on Jun 13, 2011
@dchelimsky dchelimsky dev: better constraints on files in gemspec 2c55b13
Commits on Jun 14, 2011
@dchelimsky dchelimsky doc: updates for yard ba6456d
@byroot byroot fix: missing underscores escaping in "have" feature description c539767
@dchelimsky dchelimsky Merge pull request #77 from byroot/patch-1
fix: missing underscores escaping in "have" feature description
37864d9
@dchelimsky dchelimsky changelog 1b5edc5
@dchelimsky dchelimsky remove .document/add .yardopts f0efdcf
@dchelimsky dchelimsky doc: adjustments for yard d7d87d8
Commits on Jun 21, 2011
@dchelimsky dchelimsky ci: exclude local dev gems from travis bundle fe10f0b
@dchelimsky dchelimsky dev: bump aruba timeout to 5 seconds c0a318a
@dchelimsky dchelimsky dev: exclude rcov for ruby 1.9 5ee3840
Commits on Jun 23, 2011
@dchelimsky dchelimsky dev: remove bin/ from git d5afa09
@dchelimsky dchelimsky bump cukes to 1.0 084c6b1
Commits on Jul 02, 2011
@dchelimsky dchelimsky Eliminate some warnings and align some failure messages in the process. 039baf5
@dchelimsky dchelimsky doc: tweaks 00fe65f
Commits on Jul 14, 2011
@dchelimsky dchelimsky Fix docs for 'should be' (passes if truthy, not 'not nil')
- Fixes #84.
3d8cfc7
Commits on Jul 30, 2011
@pvh pvh if the sort fails, rescue and return the array as-is
- Closes #81.
- Closes #83.
d49eba7
Commits on Aug 18, 2011
@moro moro fix typo 393f15e
@justinko justinko Merge pull request #87 from moro/cover-matcher-documentation-typo-fix
fix typo in 'cover' matchers documentation
0b63bf4
Commits on Aug 26, 2011
@dchelimsky dchelimsky improve cuke for raise_error matcher a541a75
Commits on Sep 27, 2011
@mjbellantoni mjbellantoni Make Matchers::Have recognize #count in collection objects.
- Closes #91.
a715f88
@dchelimsky dchelimsky refactor: tease apart Have#matches?
- #91.
149a939
@dchelimsky dchelimsky changelog
- #91.
d8edde0
@dchelimsky dchelimsky no reason to use __send__ for public methods eb3886a
@dchelimsky dchelimsky ci: stick to travis-supported rubies 90eeb1f
Commits on Sep 30, 2011
@dchelimsky dchelimsky copy instance_eval_with_args from rspec-core (a bit cleaner) 2102bcd
Commits on Oct 04, 2011
@dchelimsky dchelimsky ci: bump the aruba timeout for jruby e175d8a
Commits on Oct 06, 2011
@dchelimsky dchelimsky Change matcher dups Enumerable before the action, supporting custom
Enumerable types like CollectionProxy in Rails.

- Closes rspec/rspec-rails#411
ea01a6f
@dchelimsky dchelimsky ci: fix travis png url b8bafca
Commits on Oct 09, 2011
@dchelimsky dchelimsky ignore .rbx (rubinius-generated files) 2487077
@dchelimsky dchelimsky bump to 2.7.0.rc1 13cc663
@dchelimsky dchelimsky bump relish version to ~> 0.5.0 40d5ba9
Commits on Oct 16, 2011
@dchelimsky dchelimsky cleanup and add some rdoc 4638609
@dchelimsky dchelimsky update changelog for 2.7.0 release 32f2439
@dchelimsky dchelimsky bump version to 2.7.0 cf9e77f
@dchelimsky dchelimsky fix formatting problems in the changelog 73606f7
Commits on Oct 17, 2011
@dchelimsky dchelimsky move eq matcher to a class e8e4e5f
@dchelimsky dchelimsky move eql matcher to a class 14142dc
@dchelimsky dchelimsky move include matcher to a class and start to extract a base matcher c…
…lass
fc64e47
Commits on Oct 19, 2011
@dchelimsky dchelimsky add benchmark showing improvement by moving from DSL to classes
"x.should eq(5)" is over 200x faster using a class than the dsl in ruby
1.9.2, with similar results in other rubies

=========================================

3 runs of 1000 times for each example running ruby/1.8.7
passing examples: 5.should eq(5)
* using the DSL
  0.340000   0.000000   0.340000 (  0.342052)
  0.330000   0.010000   0.340000 (  0.340618)
  0.340000   0.000000   0.340000 (  0.339149)

* using a class
  0.000000   0.000000   0.000000 (  0.003762)
  0.010000   0.000000   0.010000 (  0.004192)
  0.000000   0.000000   0.000000 (  0.003791)

failing examples: 5.should eq(3)
* using the DSL
  0.380000   0.000000   0.380000 (  0.384415)
  0.380000   0.010000   0.390000 (  0.381604)
  0.370000   0.000000   0.370000 (  0.380255)

* using a class
  0.040000   0.000000   0.040000 (  0.034528)
  0.030000   0.000000   0.030000 (  0.032021)
  0.060000   0.010000   0.070000 (  0.067579)

3 runs of 1000 times for each example running ruby/1.9.2
passing examples: 5.should eq(5)
* using the DSL
  0.250000   0.010000   0.260000 (  0.249692)
  0.250000   0.000000   0.250000 (  0.253856)
  0.230000   0.000000   0.230000 (  0.232787)

* using a class
  0.000000   0.000000   0.000000 (  0.001069)
  0.000000   0.000000   0.000000 (  0.001041)
  0.000000   0.000000   0.000000 (  0.001023)

failing examples: 5.should eq(3)
* using the DSL
  0.370000   0.000000   0.370000 (  0.377139)
  0.360000   0.010000   0.370000 (  0.358379)
  0.370000   0.000000   0.370000 (  0.373795)

* using a class
  0.060000   0.010000   0.070000 (  0.073325)
  0.050000   0.000000   0.050000 (  0.053562)
  0.070000   0.000000   0.070000 (  0.075382)

3 runs of 1000 times for each example running ruby/1.9.3
passing examples: 5.should eq(5)
* using the DSL
    0.210000   0.000000   0.210000 (  0.219539)
   0.220000   0.010000   0.230000 (  0.217905)
   0.220000   0.000000   0.220000 (  0.219657)

* using a class
    0.000000   0.000000   0.000000 (  0.001054)
   0.000000   0.000000   0.000000 (  0.001048)
   0.000000   0.000000   0.000000 (  0.001035)

failing examples: 5.should eq(3)
* using the DSL
    0.350000   0.000000   0.350000 (  0.351742)
   0.360000   0.000000   0.360000 (  0.362456)
   0.340000   0.010000   0.350000 (  0.351098)

* using a class
    0.080000   0.000000   0.080000 (  0.079964)
   0.080000   0.000000   0.080000 (  0.076579)
   0.070000   0.000000   0.070000 (  0.080587)

3 runs of 1000 times for each example running rbx/1.8.7
passing examples: 5.should eq(5)
* using the DSL
  1.926107   0.009784   1.935891 (  1.629354)
  0.583860   0.004390   0.588250 (  0.580396)
  0.868571   0.003510   0.872081 (  0.796644)

* using a class
  0.002652   0.000013   0.002665 (  0.002679)
  0.001845   0.000016   0.001861 (  0.001848)
  0.002656   0.000010   0.002666 (  0.001823)

failing examples: 5.should eq(3)
* using the DSL
  0.694148   0.002006   0.696154 (  0.648551)
  1.063773   0.004653   1.068426 (  0.998837)
  0.643594   0.001356   0.644950 (  0.638358)

* using a class
  0.020139   0.000036   0.020175 (  0.020161)
  0.097540   0.000575   0.098115 (  0.084680)
  0.058366   0.000269   0.058635 (  0.044372)

3 runs of 1000 times for each example running jruby/1.8.7
passing examples: 5.should eq(5)
* using the DSL
  0.355000   0.000000   0.355000 (  0.355000)
  0.261000   0.000000   0.261000 (  0.261000)
  0.242000   0.000000   0.242000 (  0.242000)

* using a class
  0.007000   0.000000   0.007000 (  0.007000)
  0.004000   0.000000   0.004000 (  0.004000)
  0.001000   0.000000   0.001000 (  0.001000)

failing examples: 5.should eq(3)
* using the DSL
  0.507000   0.000000   0.507000 (  0.507000)
  0.468000   0.000000   0.468000 (  0.468000)
  0.476000   0.000000   0.476000 (  0.476000)

* using a class
  0.259000   0.000000   0.259000 (  0.259000)
  0.521000   0.000000   0.521000 (  0.521000)
  0.244000   0.000000   0.244000 (  0.244000)
d9e6258
@dchelimsky dchelimsky move equal matcher to class 6ef7b16
Commits on Oct 20, 2011
@dchelimsky dchelimsky make BaseMatcher a module 175873e
@dchelimsky dchelimsky be_true matcher from dsl to class 747c364
@dchelimsky dchelimsky generalize a few more bits to the base matcher 83db538
@dchelimsky dchelimsky be_[true|false|nil] matchers are all classes now 276888f
Commits on Oct 21, 2011
@dchelimsky dchelimsky Fix broken be_true and equal matchers. 17054d5
@dchelimsky dchelimsky exist matcher from dsl to class 4fc2207
@dchelimsky dchelimsky fix the failure message for exist matcher db5d616
@dchelimsky dchelimsky be_kind_of matcher to class 2953622
@dchelimsky dchelimsky be instance of matcher to class (and restore better failure messages …
…for be a kind of)
93f6ac4
@dchelimsky dchelimsky be_within matcher to class 148192b
@dchelimsky dchelimsky move the rest of the built-in matchers to classes 55a6939
@dchelimsky dchelimsky move the matchers back to the files with their classes for now b9cd7f5
@dchelimsky dchelimsky fix cover matcher failure messages 7a0abc1
@dchelimsky dchelimsky add rdoc for a few matchers 79648bd
@dchelimsky dchelimsky changelog a4f0fb5
Commits on Oct 24, 2011
@dchelimsky dchelimsky rdoc 3feb655
@dchelimsky dchelimsky rdoc 29d56b9
Commits on Oct 25, 2011
@justinko justinko Set default order to :random 0b61472
Commits on Oct 30, 2011
@dchelimsky dchelimsky add -w flag to rake spec f852ee1
@dchelimsky dchelimsky eliminate warnings 4ef2397
@dchelimsky dchelimsky dev: fix ruby-debug version (and deps) for 1.9.2 806b14b
@mvz mvz Eliminate remaining warnings.
- Closes #94.
0081b13
@dchelimsky dchelimsky changelog for #94 3c7b0f5
@dchelimsky dchelimsky changelog tweaks 2e85c85
Commits on Nov 06, 2011
@dchelimsky dchelimsky changelog b53e358
@dchelimsky dchelimsky bump to 2.8.0.rc1 09d9dff
Commits on Nov 09, 2011
@dchelimsky dchelimsky update License and/or authors in gemspec c5afc28
@dchelimsky dchelimsky update email addy and homepage in gemspec 3f23693
@dchelimsky dchelimsky fix changelog formatting 3a931ab
Commits on Nov 20, 2011
@dchelimsky dchelimsky dev: clobber docs 9cd937b
Commits on Nov 23, 2011
@dchelimsky dchelimsky add changelog to rdoc 36f2c5d
@dchelimsky dchelimsky Revert "add changelog to rdoc"
Accidentally included some stuff I was in the middle of.

This reverts commit 36f2c5d.
ed98a22
@dchelimsky dchelimsky Add changelog to rdoc (again) 1707be8
Commits on Nov 24, 2011
@dchelimsky dchelimsky dev: add warning with solution for ruby-debug19 issues when installin…
…g the bundle on ruby-1.9.3
e61595a
@dchelimsky dchelimsky add match_unless_raises to BaseMatcher 94591f2
@dchelimsky dchelimsky store the exception rescued in match_against_raises 88d6ecf
Commits on Nov 25, 2011
@dchelimsky dchelimsky BaseMatcher#== delegates to matches? 4499f53
@dchelimsky dchelimsky dev: hack the Gemfile to print instructions for ruby-debug-base19 and…
… linecache19 on ruby-1.9.3
1b2f6bd
@dchelimsky dchelimsky format 678ce01
@dchelimsky dchelimsky ci: don't warn about ruby-debug-base19 and linecache19 in ci 82eba3f
Commits on Nov 26, 2011
@dchelimsky dchelimsky self-less 7ae080e
@dchelimsky dchelimsky remove unused file f776aca
@dchelimsky dchelimsky dev: move dev-env gems to Gemfile-custom.sample d67083c
@dchelimsky dchelimsky ignore Gemfile-custom 213f60c
Commits on Nov 28, 2011
@coreyhaines coreyhaines create one matcher object rather than one-per-call d3e5310
@dchelimsky dchelimsky document methods in the matcher DSL 17c04aa
Commits on Dec 02, 2011
@dchelimsky dchelimsky add license to gemspec (and consequently the gem) f9f1b5b
Commits on Dec 04, 2011
@dchelimsky dchelimsky use github-flavored-markdown in the readme f574614
Commits on Dec 16, 2011
@dchelimsky dchelimsky add note explaining why you can't say actual.should != expected a6c4788
Commits on Dec 20, 2011
@dchelimsky dchelimsky prep for 2.8.0.rc2 28ca577
Commits on Dec 28, 2011
@spicycode spicycode Merge pull request #60 from pcreux/master
Better diff output for Hash
2447ef6
Commits on Dec 29, 2011
@dchelimsky dchelimsky Changelog for last merge 6db8a2a
@dchelimsky dchelimsky make include matcher diffable 119e018
Commits on Jan 04, 2012
@exviva exviva Fix warning in matchers/dsl.rb
lib/rspec/matchers/dsl.rb:10: warning: `*' interpreted as argument prefix
9b8aeb9
@dchelimsky dchelimsky Merge pull request #102 from exviva/fix_warning_splat_interpreted_as_…
…argument_prefix

Fix warning in matchers/dsl.rb
43b0918
@dchelimsky dchelimsky Diff single line and multiline strings differently 1273d4d
@dchelimsky dchelimsky Changelog for #102 [ci skip] b525e69
Commits on Jan 05, 2012
@dchelimsky dchelimsky bump to 2.8.0 04e55a8
Commits on Jan 06, 2012
@dchelimsky dchelimsky Align respond_to? and method_missing in Matchers generated by DSL.
- Fixes #103.
d7db5d0
@dchelimsky dchelimsky changelog for #103 3d89aec
@dchelimsky dchelimsky bump some dev dep versions and move them to gemspec 73c6b68
@dchelimsky dchelimsky clean up file listings for rdoc, yard, and gemspec b41b82f
@dchelimsky dchelimsky ci: need the development group now 034084e
@dchelimsky dchelimsky add README.md to .document file [ci skip] d03388f
Commits on Jan 09, 2012
@dchelimsky dchelimsky remove unnecessary (and unused) custom error classes e031971
Commits on Jan 12, 2012
@dchelimsky dchelimsky Move all the matcher classes to the RSpec::Matchers::BuiltIn module (so
they don't cloud the Matchers namespace)
536cf9e
@dchelimsky dchelimsky dev: tweak Guardfile b7f6dde
@dchelimsky dchelimsky autoload matcher classes to reduce startup time a0f5026
@dchelimsky dchelimsky benchmark improvement using autoload a5b7368
@dchelimsky dchelimsky Changelog for #105 [ci skip] 867260b
@dchelimsky dchelimsky fix test for cover fb36160
@dchelimsky dchelimsky fix cuke that includes fully qualified name of a class that moved 19c64a5
@dchelimsky dchelimsky it's cover? (with a ?) 95bf234
@dchelimsky dchelimsky Clear out user-defined instance variables between invocations of DSL-…
…defined matchers.

- Fixes #104.
f4efada
@dchelimsky dchelimsky ruby 1.8 uses strings, 1.9 symbols 0102504
@myronmarston 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.
40f83a9
Commits on Jan 24, 2012
@dchelimsky dchelimsky Dup the instance of a DSL generated matcher so its state is not changed
by subsequent invocations.

- Fixes #112.
65d3c4d
Commits on Jan 28, 2012
@dchelimsky dchelimsky Remove relative links from README, since they can't work correctly on
github and rubydoc.info.

- Fixes #113.
17325de
Commits on Feb 06, 2012
@dchelimsky dchelimsky Treat expected args consistently across positive and negative expecta…
…tions.

- Fixes #115.
044b0a6
@dchelimsky dchelimsky Changlog for #115 503ed29
Commits on Mar 12, 2012
@dchelimsky dchelimsky bump to 2.9.0.rc1 f923b28
@dchelimsky dchelimsky Fix file list in gemspec.
- Fixes #121
ddf0502
@dchelimsky dchelimsky bump to 2.9.0.rc2 a60766b
Commits on Mar 17, 2012
@dchelimsky dchelimsky bump to 2.9.0 fb77fca
@dchelimsky 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]
564487b
@dchelimsky dchelimsky Require kernel extensions (should) from block_aliases in case it is
loaded first.
e290fe3
@dchelimsky dchelimsky fix bug diffing single strings with multiline strings 07dd19c
@dchelimsky dchelimsky Revert "fix bug diffing single strings with multiline strings"
This reverts commit 07dd19c.
2c23be3
@dchelimsky dchelimsky better fix for bug when diffing multiline strings e4d8dcb
@dchelimsky dchelimsky formatting tweaks in the changelog 0492d87
Commits on Mar 22, 2012
@justinko justinko Remove unnecessary "else" clause. 584e764
Commits on Mar 23, 2012
@justinko justinko Provide a helpful message if the diff between two objects is empty. F…
…ixes #123
e12a2d9
Commits on Mar 25, 2012
@dchelimsky dchelimsky Changelog for #125 [ci skip] 0458ac1
Commits on Mar 27, 2012
@myronmarston myronmarston Started working on yield matchers. 99456da
Commits on Mar 29, 2012
@myronmarston myronmarston Rename helper methods for yield matcher specs. eb9d327
mirasrael Fix error with using custom matchers inside other custom matcher rspe… 77243d9
@dchelimsky dchelimsky Merge pull request #126 from mirasrael/master
Fix for error with using custom matchers inside other custom matchers
6fe6c9f
@dchelimsky dchelimsky changelog for #126 8f822b0
@dchelimsky dchelimsky tweak docstring #126 [ci skip] e5cd722
Commits on Mar 30, 2012
@myronmarston 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.
72c5dae
@myronmarston myronmarston Provide better message for negative yield_with_args matcher failure. f3923dd
@myronmarston myronmarston Group the yield examples by matcher. 1b106c4
mirasrael Fix using execution context methods in nested DSL matchers
- Fixes #127.
abba439
Commits on Mar 31, 2012
@myronmarston myronmarston Add yield_successive_args matcher. 23f5acb
mirasrael Fix RSpec::Matchers::DSL#define for compatibility with 1.8.x 21752df
mirasrael Fix naming 70dd175
@myronmarston myronmarston Fix typo: "yields", not "yeilds". 1897250
@myronmarston 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 ==.
3c6a81e
@myronmarston 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.
0e79594
@myronmarston 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.
66a2f01
@myronmarston myronmarston Add description to all yield matchers. e969284
Commits on Apr 01, 2012
@myronmarston myronmarston Add API docs for yield matchers.
Cukes are still to come.
b94da8d
@justinko justinko Merge pull request #128 from mirasrael/master
Fix using execution context methods in nested DSL matchers
5ffc547
Commits on Apr 02, 2012
@dchelimsky dchelimsky Changelog for #128
[ci skip]
ca5cc09
@dchelimsky dchelimsky Change the be_within matcher to be inclusive of the delta.
- Fixes #131.
- This changes the way the matcher behaves, which is something we would
  generally avoid in anything but a major release, however we believe
  that this is the correct behavior and that this change is very unlikely
  to impact anybody negatively. Specifically:

  1. 17.4.should be_within(0.5).of(17) # used to pass and continues to pass
  2. 17.5.should be_within(0.5).of(17) # used to fail due to lack of inclusivity, but passes after this change
  3. 17.6.should be_within(0.5).of(17) # used to fail and continues to fail
  4. 17.4.should_not be_within(0.5).of(17) # used to fail and continues to fail
  5. 17.5.should_not be_within(0.5).of(17) # used to pass due to lack of inclusivity, but fails after this change
  6. 17.6.should_not be_within(0.5).of(17) # used to fail and continues to fail

  Scenario 2 used to fail, so it's unlikely to be present.
  Scenario 5 will result in new failures, but we believe that it is very unlikely to be used.
a9bf7ab
Commits on Apr 03, 2012
@dchelimsky dchelimsky bump to 2.9.1 f31ae96
@dchelimsky dchelimsky fix changelog 2cfed80
Commits on Apr 04, 2012
@dchelimsky dchelimsky need relish in the Gemfile to push relish docs 6fe2bca
@dchelimsky dchelimsky add doc files to .yardopts
[ci skip]
40cbc30
Commits on Apr 08, 2012
@jeremywadsack jeremywadsack Added start_with and end_with matchers for String 77a9ecc
@jeremywadsack jeremywadsack Added start_with and end_with support for Array 9b9946c
@jeremywadsack jeremywadsack Handle case when expected can't be indexed ab1d055
@jeremywadsack jeremywadsack Rdoc for new matchers d5fdf35
@jeremywadsack jeremywadsack Fix up whitespace 5f367d9
Commits on Apr 09, 2012
@dchelimsky dchelimsky Merge pull request #135 from jeremywadsack/start_with_end_with
Add matchers start_with end_with
05d9853
Commits on Apr 10, 2012
@myronmarston myronmarston Add cukes for yield matchers. 24335ee
@dchelimsky dchelimsky Change start_with and end_with matchers to take varargs.
- Clean up rdoc, features, and specs.
- Refactor the two matchers a bit.
- Add changelog.
- #135
2e0cdbc
@dchelimsky dchelimsky add start_with and end_with matchers to README [ci skip] 35d98aa
@myronmarston 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.
780655c
@myronmarston myronmarston Refactor yield matchers a bit.
This allows the YieldProbe to take care of defining the probe block, and simplifies the #matches? methods.
7a0e4bb
@myronmarston 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.
f8c3c01
Commits on Apr 11, 2012
@myronmarston myronmarston Update the yield cukes with a few more/better examples. d020cfe
Commits on Apr 17, 2012
@jeremywadsack jeremywadsack Added more helpful message when actual has #[] but does not support #…
…[0,3]

Pull request #135
5908107
@dchelimsky dchelimsky align usage of expect/to 3591cd2
@dchelimsky dchelimsky can't use 1.9 hash syntax in specs (still support 1.8) - #135 5bdf4b8
Commits on Apr 19, 2012
@myronmarston myronmarston Merge pull request #129 from rspec/yield_matchers
Yield matchers
e610e40
@myronmarston myronmarston Update changelog.
[ci skip]
429c672
Commits on Apr 20, 2012
@dchelimsky dchelimsky match_unless_raises accepts multiple args
- in support of fix for rspec/rspec-rails#530
a5a58aa
@jfirebaugh jfirebaugh Do not require exception messages to exactly match MRI
Different Ruby implementations deserve latitude in the error
messages, e.g. to provide more precise diagnostics than MRI.

In particular, do not rely on the fact that RuntimeError generated
by MRI when calling bare `raise` without a current exception has
an empty message. That is not the case on Rubinius; it is arguably
a bug in MRI.

Following this commit, all test pass on Rubinius head.
9fa523e
Commits on Apr 21, 2012
@dchelimsky dchelimsky Merge pull request #140 from jfirebaugh/rubinius
Do not require exception messages to exactly match MRI
b98f0ba
@dchelimsky dchelimsky Fix potential false-positive so that it will fail correctly if there …
…is a regression.

- See #140.
694cbf1
@dchelimsky dchelimsky Changlog for #140 780d4c2
@dchelimsky dchelimsky eliminate 'not initialized' warning on @matcher_execution_context 7c76204
@dchelimsky dchelimsky ci: run against rbx 1fdaedb
@dchelimsky dchelimsky Fix Changelog formatting [ci skip] 20c7a3c
@dchelimsky dchelimsky Changelog [ci skip] f93ce4c
Commits on Apr 22, 2012
@dchelimsky dchelimsky shorten file extension f315020
@dchelimsky dchelimsky align config files across rspec projects fe40efd
@dchelimsky dchelimsky silence more warnings 5d8a233
@dchelimsky dchelimsky dev: align Gemfiles across rspec projects 15d96b8
Commits on May 01, 2012
@dchelimsky dchelimsky update yard to 0.8 97b5e0c
Commits on May 04, 2012
@dchelimsky dchelimsky update changelog for 2.10 release 77e1a09
@dchelimsky dchelimsky bump to 2.10.0 2e348ff