Skip to content

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.
Commits on Aug 31, 2010
@justinko justinko equality.feature
- Closes #15.
@dchelimsky dchelimsky beef up equality matchers feature 7cdb347
Commits on Sep 04, 2010
@dchelimsky dchelimsky delegate be(val) to equal(val) deb38c9
@dchelimsky dchelimsky un-pend pending example
- was failing on ruby-1.9.2-preview, but passes now on ruby-1.9.2 final
@myronmarston myronmarston Remove dependency on jeweler.
- Allows us to have an always-up-to-date gemspec.
- Use bundler's build/install/release rake tasks rather than jeweler's.
- One less development dependency.
- No need for a separate VERSION file.
@dchelimsky dchelimsky add ruby-debug to Gemfile 04eeba1
@dchelimsky dchelimsky Make eq and eql matchers diffable and clean up when to/not diff e7303e9
@dchelimsky dchelimsky Diff when comparing a multiline string to a regexp
- Closes #8.
Commits on Sep 08, 2010
@dchelimsky dchelimsky remove ruby-debug from Gemfile for 1.9.1 b43f107
@dchelimsky dchelimsky remove unnecessary requirement from feature
- output of paths changed subtly and caused this feature to fail
  unnecessarily. No need to bind this feature to that part of the
Commits on Sep 09, 2010
@dchelimsky dchelimsky should[_not] change now handles boolean values correctly
- Closes #16.
@dchelimsky dchelimsky clean up the change matcher c249173
Commits on Sep 11, 2010
@dchelimsky dchelimsky add beginnings of History f859a68
@dchelimsky dchelimsky history 6c31cbf
@dchelimsky dchelimsky fix changelog link in History f5aac62
Commits on Sep 12, 2010
@dchelimsky dchelimsky prep for beta.21 c4e6875
@dchelimsky dchelimsky bump version to 2.0.0.beta.21 76b9667
@dchelimsky dchelimsky stop using the old shared example API d13d9b7
Commits on Sep 13, 2010
@dchelimsky dchelimsky adjust history for beta.22 release 51f64b1
@dchelimsky dchelimsky bump version to 2.0.0.beta.22 311ba91
Commits on Sep 23, 2010
@ignu ignu fix for change by(0) bug
- Closes #17.
@dchelimsky dchelimsky extract method to remove tmp var 63c472f
@graaff graaff Explicitly require rspec version to fix broken rdoc task. d1653d7
Commits on Sep 27, 2010
@dchelimsky dchelimsky Add description to satisfy matcher.
- Closes #20.
@dchelimsky dchelimsky update history de19d98
Commits on Oct 02, 2010
@txus txus Include Matchers in MiniTest and TestUnit
- Closes #19.
@dchelimsky dchelimsky update history b3faf00
Commits on Oct 03, 2010
@myronmarston myronmarston Added a cuke for predicate matchers. a0fb168
@myronmarston myronmarston Setup rcov. 8457ee8
@myronmarston myronmarston Fixed scenario so that it actually runs and passes.
It was labeled "Scenario Outline", which prevents cucumber from actually running it.  And one of the steps wasn't quite right.
@myronmarston myronmarston Fix description of cuke feature. fb7978f
@myronmarston myronmarston Add scenarios for have_xxx (mapped to has_xxx?) predicate matchers. d8e2772
@myronmarston myronmarston Add cukes for have matchers.
- have(x).items
- have_exactly(x).items
- have_at_least(x).items
- have_at_most(x).items
@myronmarston myronmarston Fixed typo (it's "Array", not "Arrray"). 9e954bc
@myronmarston myronmarston Improved predicate matchers cuke.
- Use implicit subjects and no doc string.  The doc strings were just noise in these contrived examples.
- Added general discussion of predicate matcher rationale and functionality.
- Added scenario demonstrating passing of arguments from matcher to predicate method.
@myronmarston myronmarston Add discussion to have matcher cuke. 11d29ba
@dchelimsky dchelimsky Merge remote branch 'myronmarston/matcher_cukes' c4085b2
Commits on Oct 04, 2010
@myronmarston myronmarston Added operator matchers cuke. c070382
@myronmarston myronmarston Fixed operator matchers cuke for ruby 1.9.
- The backtrace is a bit different for 1.9, so we have to check the output for each failure separately rather than all in one step.
- should_not is not supported for the =~ array matcher, so don't use it.
@dchelimsky dchelimsky Merge remote branch 'myronmarston/matcher_cukes' dd9e877
Commits on Oct 05, 2010
@myronmarston myronmarston Add cuke demonstrating usage of rspec-expectations with Test::Unit. 09d3e4c
@dchelimsky dchelimsky Regexp.compile ed4defb
@dchelimsky dchelimsky update history add3597
@dchelimsky dchelimsky bump version to 2.0.0.rc b1a6c84
Commits on Oct 07, 2010
@myronmarston myronmarston Fix respond_to matcher.
- respond_to(:object_id, :some_undefined_method)
  should fail (but passed before).
- Refactored and DRYed up the matcher a bit.
- Added argument arity info to failure_message_for_should_not.
- Added test coverage for more should_not cases.
- Closes #26.
@dchelimsky dchelimsky history 6967fd6
Commits on Oct 09, 2010
@myronmarston myronmarston Add filtering for self-spec suite. 7624c93
@myronmarston myronmarston Add support for a DSL-defined matcher to define match logic for should
and should_not.
@myronmarston myronmarston Fixed the include matcher.
- Make it properly fail for the should_not case when given multiple values.
- Reorganized specs and added missing coverage.
- Added include matcher cuke.
@dchelimsky dchelimsky history 0d69b6f
@myronmarston myronmarston Delegate Matcher#define_method to its singleton class.
This allows you to define helper methods in a matcher using #define_method to gain access to the parameters.

- Closes #29.
@dchelimsky dchelimsky words 2d32de6
Commits on Oct 10, 2010
@dchelimsky dchelimsky words 6d1692e
@dchelimsky dchelimsky add a little relish 22d41fb
@dchelimsky dchelimsky rename feature 08265c8
@dchelimsky dchelimsky words e6979bc
@dchelimsky dchelimsky words 65b077f
@dchelimsky dchelimsky words 8669852
@dchelimsky dchelimsky prep for 2.0.0 f532c20
@dchelimsky dchelimsky only run rcov when asked (default tasks don't) b44b3ad
@dchelimsky dchelimsky update rake tasks 6dffc93
Commits on Oct 16, 2010
@myronmarston myronmarston Port RSpec.deprecate from rspec-core.
It's already being used, and rspec-expectations should be usable without rspec-core.
@myronmarston 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.
@myronmarston myronmarston Add cuke for be_kind_of and be_instance_of matchers.
- Closes #31.
@dchelimsky dchelimsky words 770ab8c
Commits on Oct 18, 2010
@dchelimsky dchelimsky update version and dependency versions 6d76c29
Commits on Oct 20, 2010
@myronmarston myronmarston Fix a few grammar/punctuation mistakes.
- Closes #34.
@dchelimsky dchelimsky rename feature e91c61e
@myronmarston myronmarston Add cuke for satisfy matcher. 8af9e08
Commits on Oct 21, 2010
@dchelimsky dchelimsky comment / TODO 98f61d9
Commits on Oct 22, 2010
@dchelimsky dchelimsky update dependencies across development repos 7032c39
Commits on Oct 23, 2010
@dchelimsky dchelimsky links to docs b8e248b
@myronmarston myronmarston Add cuke for exist matcher.
- Closes #39.
@myronmarston 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.
@myronmarston myronmarston Fix `expect { ... }.to` so that it has no dependency on rspec-core an…
…d can work outside of it.
@dchelimsky dchelimsky update for relish c9a3033
Commits on Nov 06, 2010
@myronmarston myronmarston Raise an error if should/should_not !=/!~ is used since these operato…
…rs cannot be supported on ruby 1.8.

- Closes #33.
@txus txus have_matcher - use pluralize only when ActiveSupport inflections are …
…indeed defined

- Closes #30.
@myronmarston myronmarston Fix throw_symbol matcher so that it no longer swallows exceptions tha…
…t occur in the proc.
@myronmarston myronmarston Improve failure messages for throw_symbol matcher and add a cuke for it.
- Closes #36.
Commits on Nov 07, 2010
@dchelimsky dchelimsky clean up load paths in spec helper 868c3ef
@dchelimsky dchelimsky eliminate some warnings f9ff542
@myronmarston 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:


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

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

- Closes #49.
@dchelimsky dchelimsky fix warnings on include spec e318249
@dchelimsky dchelimsky history 1bcd0bc
Commits on Dec 12, 2010
@dchelimsky dchelimsky align Gemfiles across rspec dev repos 6790c7c
@dchelimsky dchelimsky prep for 2.3.0 release 94a5730
Commits on Dec 14, 2010
@dchelimsky dchelimsky bump version to 2.4.0.pre d52c10e
Commits on Dec 18, 2010
@dchelimsky dchelimsky dev-support: update relish task 2b10fc0
Commits on Dec 19, 2010
@joliss joliss improved documentation for change method
- Closes #51.
@dchelimsky dchelimsky more improvments to RDoc for change matcher 9059239
@dchelimsky dchelimsky dev support: add Guardfile 3b59fc1
Commits on Dec 20, 2010
@dchelimsky 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.
@dchelimsky dchelimsky more more consistency across failure messages for operator matchers d1566d4
@dchelimsky dchelimsky remove feature duplicated in rspec-core 8310b17
@dchelimsky dchelimsky reorg cuke features ea4dd96
Commits on Jan 02, 2011
@dchelimsky dchelimsky update expected output in cukes to align with changes in rspec-core 3b0e957
@dchelimsky dchelimsky prep for 2.4.0 release 68f857b
Commits on Jan 08, 2011
@myronmarston 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.
Commits on Jan 17, 2011
@myronmarston myronmarston Fix exist matcher so that it uses either #exist? or #exists? 12d1ae3
@dchelimsky dchelimsky docs/changelog 68fff16
Commits on Feb 02, 2011
@jamesalmond jamesalmond Improved docs for raise_error
- Closes #58.
@dchelimsky dchelimsky Additional improvements to raise_error matcher docs. f5ddd17
Commits on Feb 05, 2011
@dchelimsky dchelimsky update Guardfile - use actual regexps, not strings that look like them 893a7df
@dchelimsky dchelimsky .not_to in addition to .to_not
- Closes #50.
@dchelimsky dchelimsky changelog d9154b6
@dchelimsky dchelimsky dot placement matters 6528f3f
@dchelimsky dchelimsky reduce dependency on output in cuke scenario ad6fd10
@dchelimsky dchelimsky prep for 2.5 release 3e4a46f
Commits on Feb 18, 2011
Geoffrey Byers Removed non-ascii characters from comments
- Closes #61.
@dchelimsky dchelimsky changelog 8813963
Commits on Feb 25, 2011
@myronmarston myronmarston Remove obselete file. a496a73
Commits on Feb 27, 2011
@myronmarston myronmarston Prevent SystemStackError on 1.9 when users include RSpec::Matchers in…
… an example group.

Closes #63.
Commits on Mar 07, 2011
@myronmarston 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.
Commits on Mar 10, 2011
@myronmarston myronmarston Allow modules to be included in custom matchers.
Closes rspec-core #344.
Commits on Mar 21, 2011
@davisre davisre change matcher now accepts regexp in to/from
- Closes #62.
@dchelimsky dchelimsky better ivar names in change matcher 1dc423e
@dchelimsky dchelimsky Changlog e14e87f
@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
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:

Closes #67.
@myronmarston myronmarston Changelog. bbfb723
@myronmarston myronmarston Use allocate rather than monkey patching Test::Unit::TestCase#initial…

Thanks to @justinko for the suggestion.
Commits on Mar 29, 2011
@myronmarston myronmarston Pull gems from github when they are not available locally on the file…
@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

Squashed commit of the following:

commit 521a6f025a786076f5b10beea553f74b01a17b10
Author: David Chelimsky <>
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 <>
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 <>
Date:   Sat Apr 9 16:37:12 2011 -0500

    Revert "Add has.feature to Relish .nav"

    This reverts commit 5ca17e7.
@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