Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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
Checking mergeability… Don't worry, you can still create the pull request.
This comparison is big! We're only showing the most recent 250 commits
Commits on Sep 05, 2014
@myronmarston myronmarston 3.1.0 release. 7815685
@myronmarston myronmarston Fix `have_attributes` title and nav.
[ci skip]
b9a3dc2
@myronmarston myronmarston Bump version to 3.2.0.pre. 92f4a0d
Commits on Sep 09, 2014
@kcdragon kcdragon Handle block param for custom matcher with block_param method
Refactoring Ruby 1.9 specific logic, improving block_param specs
5612088
@myronmarston myronmarston Merge pull request #645 from kcdragon/feature-block-param-for-custome…
…r-matcher

Handle block param for custom matcher with block_param method
6dca837
@myronmarston myronmarston Rename `block_param` to `block_arg`.
I think `arg` is a more standard name than `param`
for what you pass to a method.
115c264
@myronmarston myronmarston Improve block warning.
- RSpec.warning appends a period, so we should not have one
  on the last sentence or we’ll get a double period.
- The new message is less cryptic and is hopefully more
  clear for end users.
b5286ef
@myronmarston myronmarston Changelog for #645. 1e501df
@JonRowe JonRowe Merge pull request #646 from rspec/645-followups
645 followups
f1ef13e
Commits on Sep 11, 2014
@jorihardman jorihardman Fix all matcher to work with any object that responds to each_with_in…
…dex.

Commit 5b4dc0c introduced explicit
checking to ensure that the all matcher is run only on Enumerable
objects. This broke the matcher for objects that behave like Enumerable,
but don't include the Enumerable module (e.g. Rails
ActiveRecord::Relations).
0d31ff2
@jorihardman jorihardman Add test to all matcher to ensure objects with #each_with_index are u…
…sable.
053541f
@jorihardman jorihardman Fix failing 1.8.7 test. 5d12169
@jorihardman jorihardman Rename #enumerable? to #iterable? for clarity. Add fail test for #eac…
…h_with_index context.
3a1d9cd
Commits on Sep 12, 2014
@myronmarston myronmarston Merge pull request #647 from jorihardman/master
Fix all matcher to work with any object that responds to each_with_index...
ed643ab
Commits on Sep 15, 2014
@JonRowe JonRowe show the number of times a block yielded 93261d4
@myronmarston myronmarston Forwardport 3.1.1 release notes.
[ci skip]
510ec5e
@JonRowe JonRowe changelog for #650
[skip ci]
15ec090
@JonRowe JonRowe Merge pull request #650 from rspec/add_more_detail_to_yield_failure
Show the number of times a block yielded when expectation not met for yield_control
6fea5f2
Commits on Sep 18, 2014
@myronmarston myronmarston Use YARD method directive properly.
Apparently, I was using it wrong.
See lsegal/rubydoc.info#82 for discussion.
bfd1106
@myronmarston myronmarston Merge pull request #654 from rspec/fix-protocol-docs
Use YARD method directive properly.
9f5c668
Commits on Sep 23, 2014
@myronmarston myronmarston Fix `define_negated_matcher` when used with chained methods off of ma…
…tchers.
c11864e
@myronmarston myronmarston Use `RSpec::Matchers.is_a_matcher?` to detect matchers. 23869ee
@myronmarston myronmarston Merge pull request #656 from rspec/fix-negated-matdcher-fluent-interface
Fix negated matcher fluent interface
47bc4a0
Commits on Sep 26, 2014
@myronmarston myronmarston Make `define_negated_matcher` produce an appropriate failure message.
Fixes #657.
84af564
@myronmarston myronmarston Merge pull request #659 from rspec/fix-failure-messages-for-negated-m…
…atchers

Make `define_negated_matcher` produce an appropriate failure message.
0ec6821
@JonRowe JonRowe Updated travis build scripts (from rspec-dev) 12f05db
@JonRowe JonRowe Merge pull request #660 from rspec/update-travis-build-scripts-2014-0…
…9-26-for-master

Updates from rspec-dev (2014-09-26)
abb828b
@tomstuart tomstuart Add shorthand `chain` syntax for custom matchers
The `chain` block in fluent matchers almost always just assigns its
argument to an instance variable:

  RSpec::Matchers.define :be_bigger_than do |first|
    match do |actual|
      (actual > first) && (actual < @second)
    end

    chain :and_smaller_than do |second|
      @second = second
    end
  end

Requiring a block is kind of overkill in this common case, and I get
tired of reimplementing the exact same thing in every fluent matcher I
define.

This feature allows you to instead write:

  RSpec::Matchers.define :be_bigger_than do |first|
    match do |actual|
      (actual > first) && (actual < second)
    end

    chain :and_smaller_than, :second
  end

Namely:

  * you can just say `:second` instead of `do |second| @second = second
    end`; and
  * as a bonus, since the DSL now knows a meaningful name for that
    remembered value, you can refer to it (e.g. in `match`) by
    saying `second` instead of `@second`.
753bd29
@myronmarston myronmarston Forwardport 3.1.2 release notes. b63d3c1
@JonRowe JonRowe Merge pull request #644 from tomstuart/chained-setters
Add shorthand `chain` syntax for custom matchers
7628434
@JonRowe JonRowe Changelog for #644
[skip ci]
25e7b92
Commits on Sep 29, 2014
@AvnerCohen AvnerCohen [minor] added two samples of negative check 10af266
@myronmarston myronmarston Merge pull request #662 from AvnerCohen/negate_readme
[minor] added two samples of negative check
fc4af07
Commits on Oct 02, 2014
@elia elia Give a hint on how the set the :should syntax 5346d02
@JonRowe JonRowe Merge pull request #663 from elia/patch-1
Give a hint on how the set the :should syntax
07af3f3
@JonRowe JonRowe changelog for #663 8b6234a
Commits on Oct 09, 2014
@JonRowe JonRowe document supports_block_expectations in the custom matcher DSL e8f583d
@JonRowe JonRowe add additional scenario for defining method manually 1da2347
@myronmarston myronmarston Merge pull request #665 from rspec/document_block_matchers_with_dsl
Document supports_block_expectations for the custom matcher DSL
ea252de
Commits on Oct 13, 2014
@JonRowe JonRowe improve hash attributes failure message by caching values and enumera…
…ting in output
6ec5799
@JonRowe JonRowe changelog for #668
[skip ci]
a1ef9d7
@JonRowe JonRowe make have_attributes diffable e7e4527
@JonRowe JonRowe add diffable #668 to changelog
[skip ci]
681d255
@JonRowe JonRowe Merge pull request #668 from rspec/improve_have_attributes
Improve have_attributes matcher failure message.
0ee6263
Commits on Oct 22, 2014
@chapmajs chapmajs Removing explicit checking of object's private methods 5f6c5ca
@myronmarston myronmarston Merge pull request #670 from chapmajs/be_matcher_fix
Removing explicit checking of object's private methods
73a432c
@myronmarston myronmarston Add changelog entry for #670.
[ci skip]
aa634ea
Commits on Oct 27, 2014
@myronmarston myronmarston Fix doc wording.
[ci skip]
ef768f8
Commits on Oct 30, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
fb74824
Commits on Oct 31, 2014
@myronmarston myronmarston Merge pull request #674 from rspec/update-travis-build-scripts-2014-1…
…0-30-for-master

Updates from rspec-dev (2014-10-30)
b12657c
Commits on Nov 05, 2014
@myronmarston myronmarston Remove inaccurate note.
`yield_control` supports modifiers like `once`,
`twice`, `exactly(10).times`, etc.
9bde29a
@myronmarston myronmarston Make `yield_control` default to `at_least(:once)`.
Previously, it raised a confusing error when multiple
yields occurred:

> The yield_control matcher is not designed to be used with a
> method that yields multiple times. Use the yield_successive_args
> matcher for that case.

This was confusing because yield_control has supported multiple
yields for awhile.  This also simplifies the implementation!
c76be85
Commits on Nov 06, 2014
@JonRowe JonRowe Merge pull request #675 from rspec/improve-yield-control-matcher
Make `yield_control` default to `at_least(:once)`.
854092d
Commits on Nov 12, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
1198697
@myronmarston myronmarston Merge pull request #680 from rspec/update-travis-build-scripts-2014-1…
…1-12-for-master

Updates from rspec-dev (2014-11-12)
972d101
@cupakromer cupakromer Updated travis build scripts (from rspec-dev)
ab0f169
@JonRowe JonRowe Merge pull request #681 from rspec/update-travis-build-scripts-2014-1…
…1-12-for-master

Updates from rspec-dev (2014-11-12)
8280c5a
Commits on Nov 13, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
cb02d80
Commits on Nov 14, 2014
@myronmarston myronmarston Merge pull request #682 from rspec/update-travis-build-scripts-2014-1…
…1-13-for-master

Updates from rspec-dev (2014-11-13)
6f86d39
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
d74620f
@myronmarston myronmarston Merge pull request #683 from rspec/update-travis-build-scripts-2014-1…
…1-13-for-master

Updates from rspec-dev (2014-11-13)
33198e1
Commits on Nov 15, 2014
@JonRowe JonRowe Updated travis build scripts (from rspec-dev)
f808837
@JonRowe JonRowe Merge pull request #684 from rspec/update-travis-build-scripts-2014-1…
…1-15-for-master

Updates from rspec-dev (2014-11-15)
09ec82c
Commits on Nov 24, 2014
@myronmarston myronmarston Address `instance variable @color not initialized` warning.
95d9c97
@JonRowe JonRowe Merge pull request #689 from rspec/fix-color-warning
Address `instance variable @color not initialized` warning.
c03e367
@myronmarston myronmarston Add changelog for #689. 35f132d
@myronmarston myronmarston Fix `(start|end)_with` when comparing a string against an array of st…
…rings.
03d21ce
Commits on Nov 25, 2014
@JonRowe JonRowe Merge pull request #690 from rspec/fix-start-with-end-with-array-of-s…
…trings

Fix start with end with array of strings
c8ccd8d
@JonRowe JonRowe Badges as SVG
[skip ci]
7b226ac
@JonRowe JonRowe Merge pull request #691 from rspec/badge_as_svg
Switch readme badges to svg
438d4b8
@myronmarston myronmarston Prefer `example` over `it` for these specs.
`it "expect(...)..." doesn't read well at all. The behavior
has already been desribed by the group's doc string; each
of the individual specs is an `example` of it, so `example`
works better here.
ff8ecc8
@myronmarston myronmarston Don’t use internally delegated matchers for generated descriptions.
036dab4
@JonRowe JonRowe Merge pull request #692 from rspec/fix-generated-descriptions-with-ne…
…sted-matchers

Fix generated descriptions with nested matchers
7b251ce
Commits on Dec 04, 2014
@postmodern postmodern Properly sub-class Exception so YARD can detect ExpectationNotMetError.
9d58624
@JonRowe JonRowe Merge pull request #693 from postmodern/master
Properly sub-class Exception so YARD can detect ExpectationNotMetError.
fb35c58
Commits on Dec 08, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
aeb121a
@myronmarston myronmarston Merge pull request #696 from rspec/update-travis-build-scripts-2014-1…
…2-08-for-master

Updates from rspec-dev (2014-12-08)
79ba980
Commits on Dec 09, 2014
@JonRowe JonRowe rename type to class internally
85b1e89
@JonRowe JonRowe Merge pull request #697 from rspec/rename_type_to_class_internally
Rename type to class internally
b58918c
Commits on Dec 18, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
c6fe74d
@myronmarston myronmarston Merge pull request #699 from rspec/update-travis-build-scripts-2014-1…
…2-17-for-master

Updates from rspec-dev (2014-12-17)
0778ffa
Commits on Dec 23, 2014
@alexgenco alexgenco Add `to_std(out|err)_from_any_process` matchers
These matchers will capture all output from spawned subprocesses in
addition to the main Ruby process.
1a5f76c
@alexgenco alexgenco Add docs and features around `to_std(out|err)_from_any_process` matchers 388d7d9
@alexgenco alexgenco Add benchmarks around `to_std(out|err)_from_any_process` matchers
cccd8f1
Commits on Dec 24, 2014
@alexgenco alexgenco Change echo commands in output_spec if running on windows
0e0d64c
@myronmarston myronmarston Merge pull request #700 from alexgenco/output_matcher
Allow output matcher to capture output of a child process
e02e086
@myronmarston myronmarston Add changelog for #700.
[ci skip]
7af8e39
Commits on Dec 27, 2014
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
4d041bd
@myronmarston myronmarston Merge pull request #701 from rspec/update-travis-build-scripts-2014-1…
…2-26-for-master

Updates from rspec-dev (2014-12-26)
d3aa5ac
Commits on Dec 28, 2014
@benmoss benmoss Updated travis build scripts (from rspec-dev)
7a6e83d
@benmoss benmoss Attempt to provide documentation for the Minitest exception class
f2112cc
@myronmarston myronmarston Merge pull request #702 from benmoss/update-travis-build-scripts-2014…
…-12-27-for-master

Updated travis build scripts (from rspec-dev)
47cd127
Commits on Dec 29, 2014
@myronmarston myronmarston Address MRI 2.2 warnings (possible reference to past scope).
From ruby/ruby@f5f6218.
It causes 280 warnings in our spec suite :(. The fix is to change the names of
variables and/or `let` definitions so they do not clash.

See https://bugs.ruby-lang.org/issues/10661 for more discussion.
fdd9ef3
@myronmarston myronmarston Merge pull request #703 from rspec/address-2.2-issues
Address MRI 2.2 warnings (possible reference to past scope).
f5fd2c7
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
122d18f
Commits on Dec 30, 2014
@myronmarston myronmarston Merge pull request #704 from rspec/update-travis-build-scripts-2014-1…
…2-29-for-master

Updates from rspec-dev (2014-12-29)
101c4b4
Commits on Jan 01, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
3b1a5ca
@myronmarston myronmarston Merge pull request #706 from rspec/update-travis-build-scripts-2014-1…
…2-31-for-master

Updates from rspec-dev (2014-12-31)
2d9795a
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
f0fefb7
Commits on Jan 02, 2015
@myronmarston myronmarston Merge pull request #707 from rspec/update-travis-build-scripts-2015-0…
…1-01-for-master

Updates from rspec-dev (2015-01-01)
ad702ee
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
07f53df
@JonRowe JonRowe Merge pull request #708 from rspec/update-travis-build-scripts-2015-0…
…1-01-for-master

Updates from rspec-dev (2015-01-01)
76962c4
Commits on Jan 08, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
c576f4a
@myronmarston myronmarston Merge pull request #710 from rspec/update-travis-build-scripts-2015-0…
…1-07-for-master

Updates from rspec-dev (2015-01-07)
1c877e0
Commits on Jan 15, 2015
@myronmarston myronmarston Exclude aruba 0.6.2 for now.
This should fix the build.

See cucumber/aruba@5b2c7b4#commitcomment-9284628 for background.
eb23fe0
@myronmarston myronmarston Merge pull request #714 from rspec/exclude-arbua-0-6-2
Exclude aruba 0.6.2 for now.
a88281b
Commits on Jan 16, 2015
@myronmarston myronmarston Update to aruba 0.6.2.
0.6.2 removes regexp so we need to stop using it.
5e8f556
Commits on Jan 17, 2015
@JonRowe JonRowe Merge pull request #715 from rspec/fix-for-aruba-0-6-2
Update to aruba 0.6.2.
27e9199
@cupakromer cupakromer Include details on how to run against `master`.
A very common issue is when a user attempts to run against the `master`
branch. Simply pointing to `master` doesn't work. This adds the steps
necessary to use `master`.

We need all of the repos in order to also satisfy any other gems which
may have a dependency on the `rspec` gem.

[ci skip]
146dd99
@cupakromer cupakromer Merge pull request #716 from rspec/help-for-running-master
Include details on how to run against `master`.
b7d8371
Commits on Jan 21, 2015
@myronmarston myronmarston Remove dead code. d467141
@myronmarston myronmarston Rename StartAndEndWith to StartOrEndWith.
After all, it does one or the other, not both.
3bc50c5
Commits on Jan 22, 2015
@myronmarston myronmarston Doc improvements.
a028cd4
@JonRowe JonRowe Merge pull request #718 from rspec/fixup-start-and-end-with
Fixup start and end with
45ff9fa
Commits on Jan 28, 2015
@waterlink waterlink Diffable compound matchers 709c8e7
@waterlink waterlink disable rubocop ClassLength for Compound matcher
aa7188f
@myronmarston myronmarston Merge pull request #713 from waterlink/compound_matcher_diff
Compound matcher diff
b6e46b1
@myronmarston myronmarston Add changelog for #713.
[ci skip]
deac66a
Commits on Jan 29, 2015
@alex-fedorov alex-fedorov followup for #713 :: use differ directly instead of differ factory me…
…thod
b299e1a
@myronmarston myronmarston Merge pull request #722 from waterlink/followup/713/reuse_differ_in_e…
…xpecteds_for_multiple_diffs

followup for #713 :: Use differ directly instead of differ factory method
0e91a28
Commits on Feb 03, 2015
@sivagollapalli sivagollapalli FIX#717 Added YARD doc
- hash support for include matcher
1d5d2a2
@myronmarston myronmarston Merge pull request #725 from sivagollapalli/issue_717
FIX#717 Added YARD doc
fc9b15e
@myronmarston myronmarston Update changelog for v3.2.0 [ci skip] 60153c7
@myronmarston myronmarston Release 3.2.0
27cdd63
@myronmarston myronmarston Bump version to 3.3.0.pre
1e7240e
Commits on Feb 04, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
e33435a
Commits on Feb 05, 2015
@myronmarston myronmarston Merge pull request #726 from rspec/update-travis-build-scripts-2015-0…
…2-03-for-master

Updates from rspec-dev (2015-02-03)
6ba9bfb
@ryantm ryantm Update README.md
Change is_a? to kind_of? reflecting the actual method called by the matcher. This might make it easier for someone to mock it.
fe29d44
@JonRowe JonRowe Merge pull request #727 from ryantm/patch-1
Update README.md
3ff873c
Commits on Feb 06, 2015
@myronmarston myronmarston Refactor failure matcher definitions to use a recommended technique.
I wouldn't encourage users to directly define methods on `RSpec::Matchers` so we probably shouldn't, either.
ede6785
@myronmarston myronmarston Use fail matchers more precisely.
When a regexp is being used, `fail_with` works just fine.
When you want to match on a string snippet, `fail_including`
works better, by delegating to `a_string_including`.
b4b4fbb
@JonRowe JonRowe Merge pull request #728 from rspec/stop-patching-rspec-matchers
Refactor failure matcher definitions to use a recommended technique.
cc550c4
Commits on Feb 08, 2015
@JonRowe JonRowe isolate a spec depending on set from the main process
5149590
@JonRowe JonRowe Merge pull request #730 from rspec/require_set_before_use_in_specs
Isolate a spec depending on set from the main process
b647492
Commits on Feb 09, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
35fee60
@charlierudolph charlierudolph expose fail matchers for testing custom matchers
c340b44
Commits on Feb 10, 2015
@JonRowe JonRowe Merge pull request #729 from charlierudolph/cr-exposeFail
expose fail matchers for testing custom matchers
5f9c06c
@JonRowe JonRowe changelog for #729
[skip ci]
13fd25a
Commits on Feb 12, 2015
@JonRowe JonRowe Merge pull request #731 from rspec/update-travis-build-scripts-2015-0…
…2-08-for-master

Updates from rspec-dev (2015-02-08)
c7f0054
Commits on Feb 13, 2015
@JonRowe JonRowe remove extra require f331dca
@JonRowe JonRowe eliminate usage of openstruct 72fa468
@JonRowe JonRowe fix the Set spec to use sub process only when possible a57d550
@JonRowe JonRowe isolate require timeout from main spec env where possible ef91a3f
Commits on Feb 15, 2015
@JonRowe JonRowe isolate require delegate from main spec env where possible 17c66ec
@JonRowe JonRowe isolate require bigdecimal from main spec env where possible ce96ea3
@JonRowe JonRowe isolate require complex from main spec env where possible 5de31b5
@JonRowe JonRowe isolate require date from main spec env where possible 07ef767
@JonRowe JonRowe isolate require uri from main spec env where possible 7a4e0f7
@JonRowe JonRowe tidyup include for RSpec::Support::InSubProcess 3c7b7fe
@JonRowe JonRowe attempt to fix 1.9.2 by using class rather than struct
8ad2cbf
Commits on Feb 16, 2015
@JonRowe JonRowe Merge pull request #734 from rspec/isolate_specs_when_possible
Isolate specs from std lib when possible
c9926c3
Commits on Feb 17, 2015
@myronmarston myronmarston Cleanup whitespace. a29e121
@myronmarston myronmarston Update to new rspec-support library-wide checks. abf9555
@myronmarston myronmarston Delay `tempfile` loading.
(See comment for explanation about why we do this).
8fa0535
@myronmarston myronmarston Update to latest rspec-support requires.
ca148b7
@myronmarston myronmarston Changelog.
[ci skip]
41c53db
@JonRowe JonRowe Merge pull request #735 from rspec/allowed-stdlibs
Allowed stdlibs
6d69157
Commits on Feb 18, 2015
@myronmarston myronmarston Leverage new differ autoload.
Builds on rspec/rspec-support#181. This avoids the
cost of loading diff/lcs, pp, etc for cases where
we don’t need to print any diffs.
2e06376
@JonRowe JonRowe Merge pull request #739 from rspec/leverage-differ-autoload
Leverage new differ autoload.
08c1143
Commits on Feb 24, 2015
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
1902eaf
Commits on Feb 25, 2015
@myronmarston myronmarston Merge pull request #743 from rspec/update-travis-build-scripts-2015-0…
…2-24-for-master

Updates from rspec-dev (2015-02-24)
dfb06e9
Commits on Feb 26, 2015
@imtayadeway imtayadeway Suggest `be_truthy`/`be true` when using `be_true`
Applies the same for `be_false`. Still fails as expected, but adds an
additional message to suggest an alternative if still using the
deprecated `be_true`/`be_false`.

#741
98dc0aa
@JonRowe JonRowe Merge pull request #744 from imtayadeway/be-true-false-notice
Suggest `be_truthy`/`be true` when using `be_true`
0876df0
@JonRowe JonRowe changelog for #744
[skip ci]
4081467
Commits on Mar 02, 2015
@jaredbeck jaredbeck Add RSpec::Matchers::EnglishPhrasing to public API
Expose `RSpec::Matchers::EnglishPhrasing` to make it easier to write
nice failure messages and descriptions in custom matchers.

Pretty remains private, and is still mixed into
BaseMatcher and DSL::Matcher.

EnglishPhrasing, by comparison, is not mixed into any classes, and its
methods are now static.
f2729cc
@jaredbeck jaredbeck Make Pretty#underscore private
929e21d
Commits on Mar 11, 2015
@myronmarston myronmarston Merge pull request #736 from jaredbeck/patch-1
Allow custom matchers to use methods in Pretty
10a9c3e
@myronmarston myronmarston Move definition of `improve_hash_formatting`.
We don’t want it defined in the `Pretty` module because
that is included the custom matcher DSL and it’s not meant
for end-user use.
3c89981
@myronmarston myronmarston Remove `Pretty` module.
It’s no longer needed.
be1d897
@myronmarston myronmarston Merge pull request #749 from rspec/pr-736-fixups
Pr 736 fixups
6a9f42e
Commits on Mar 15, 2015
@abotalov abotalov Make a context where RSpec::Matchers is included respond to missing b…
…e_* or have_*
b33229a
Commits on Mar 16, 2015
@myronmarston myronmarston Merge pull request #751 from abotalov/respond_to_missing_be_or_have
Make a context where RSpec::Matchers is included respond to missing be_* or have_*
9621a02
@myronmarston myronmarston Add changelog for #751.
[ci skip]
d0b0d1d
@myronmarston myronmarston Updated travis build scripts (from rspec-dev)
7d5ef66
@JonRowe JonRowe Merge pull request #753 from rspec/update-travis-build-scripts-2015-0…
…3-15-for-master

Updates from rspec-dev (2015-03-15)
39ff245
Commits on Mar 19, 2015
@myronmarston myronmarston Fix `contain_exactly` to work with test doubles.
Test doubles do not define `<=>` by default.
9633da8
@JonRowe JonRowe Merge pull request #758 from rspec/fix-contain-exactly-with-doubles
Fix `contain_exactly` to work with test doubles.
f69cc91
Commits on Mar 22, 2015
@JonRowe JonRowe changelog for #755
[skip ci]
3610e0d
@JonRowe JonRowe prevent infinite ranges blowing up descriptions bfa9746
@JonRowe JonRowe fix 1.8.7 value matching for error messages
557f47b
@JonRowe JonRowe Merge pull request #757 from rspec/fix_descriptions_with_ranges_kick_…
…travis

Fix descriptions with ranges kick travis
f289e21
Commits on Apr 03, 2015
@myronmarston myronmarston Improve wording of changelog entry.
734fe2e
Commits on Apr 06, 2015
@myronmarston myronmarston Forwardport 3.2.1 release notes.
f0b79d1
Commits on Apr 11, 2015
@imtayadeway imtayadeway Avoid diffing for problematic include cases.
Include#diffable? will return true unless it detects a multiline string
with at least one expected that is included in actual, but is not an
exact match for any single line.

#746
c02a0b2
@myronmarston myronmarston Merge pull request #763 from imtayadeway/tw/diff-substrings
Avoid diffing for problematic `include` cases
460972c
@myronmarston myronmarston Add changelog for #763.
[ci skip]
7308190
@myronmarston myronmarston Enable verified partial doubles. e66377c
@gavingmiller gavingmiller Use ObjectInspector for all inspection work
Moves code into ObjectInspector and expands usage to matchers.
af56605
@myronmarston myronmarston Update some more matchers to use rspec-support’s object inspector.
Also, add a shared spec that ensures each matcher uses it.
97b1a99
@myronmarston myronmarston Add changelog.
01f1ac5
Commits on Apr 12, 2015
@myronmarston myronmarston Merge pull request #765 from rspec/pr-740-followups
Pr 740 followups
fe2c96e
Commits on Apr 14, 2015
@ChrisArcand ChrisArcand Remove remnant of have(n) matcher tests
have(n) matchers were removed here:
8f39d44
This dummy team class isn't used anywhere else.
c5aede2
@myronmarston myronmarston Merge pull request #770 from ChrisArcand/remove-old-have-n-stub
Remove remnant of have(n) matcher tests
774b8d6
Commits on Apr 15, 2015
@myronmarston myronmarston Avoid `TypeError: can’t covert x into String/Regexp` errors. ce78a23
@myronmarston myronmarston Make `match` specs more robust.
- Specify failure messages, rather than just
  `expect { }.to fail`.
- Add specs covering `expect(/regexp/)`. We had
  cuke coverage for this, but not specs.
77a6d65
@myronmarston myronmarston Convert to guard clause.
5eb092c
@myronmarston myronmarston Merge pull request #772 from rspec/fix-match-bug
Fix match bug
a75fe7b
Commits on Apr 16, 2015
@JonRowe JonRowe be specific about exceptions in our own test suite 16bc242
@JonRowe JonRowe configuration for warning about false positives 25955fa
@JonRowe JonRowe issue a warning when a bare raise_error is used e70959a
@JonRowe JonRowe add additonal examples covering no warnings c4122f1
@JonRowe JonRowe reduce cyclomatic complexity of RaiseError#match? b8f3d0a
@JonRowe JonRowe move bare raise_error warning message into a method 40484a4
@JonRowe JonRowe add expectation for no warnings b4bd497
@JonRowe JonRowe extract warnings configuration to shared context 55df233
@JonRowe JonRowe changelog for #768
4ac75c9
@JonRowe JonRowe Merge pull request #768 from rspec/warn_about_bare_raise_error
Warn about bare `raise_error`
1f36a90
Commits on Apr 17, 2015
@myronmarston myronmarston Stop assuming the format of `test_double.inspect`.
This is necessary for rspec/rspec-mocks#932.
f96d44e
@myronmarston myronmarston Merge pull request #774 from rspec/fix-double-formatting-failures
Stop assuming the format of `test_double.inspect`.
b574ab2
Commits on Apr 20, 2015
@JonRowe JonRowe change config for false positives to `warn_about_potential_false_posi…
…tives`
4c14be5
@myronmarston myronmarston Merge pull request #778 from rspec/rename_config_for_false_positives
Rename config for false positives to `warn_about_potential_false_positives`
1c191a0
Commits on Apr 22, 2015
@JonRowe JonRowe change not_raise(something_specific) behaviour to warn rather than error 4b41f37
@JonRowe JonRowe changelog for 775
868cb9a
@JonRowe JonRowe Merge pull request #775 from rspec/change_raise_error_behaviour
Change error for `expect { }.not_to raise_error(something_specific)` to warn and respect new config
2523736
Commits on Apr 23, 2015
@ChrisArcand ChrisArcand Show only differing results in #include
Most basic example:
Failure/Error: expect("abc").to include("a", "d", "c", "e")
       expected "abc" to include "a", "d", and "c"

now only should read 'expected "abc" to include "d" and "e"'
b1468df
Commits on Apr 24, 2015
@ChrisArcand ChrisArcand Add benchmarks for new `include` implementation
Compares performance of include matcher before and after #780
a61a07a
@myronmarston myronmarston Merge pull request #780 from ChrisArcand/improve-include-matcher-output
Show only differing results in #include
e85722d
@myronmarston myronmarston Add changelog for #780.
[ci skip]
714c1ed
Commits on Apr 29, 2015
@ChrisArcand ChrisArcand Omit all Ruby < 1.9 only code from test coverage
60aae1e
@JonRowe JonRowe Merge pull request #784 from ChrisArcand/moar-test-coverage
Omit all Ruby < 1.9 only code from test coverage
087658b
Commits on Apr 30, 2015
@ChrisArcand ChrisArcand Updated spec and documentation for issue #719
Expected results of code changes for issue #719, allowing the `satisfy`
matcher to accept a custom description for improved failure messages.
98d36d7
@ChrisArcand ChrisArcand Allow custom descriptions for `satisfy` matcher
This provides greater flexibility by allowing someone to specify the
description to be used by `satisfy`; Error messages which were forced
to be 'expected [actual] to satisfy block' can have more meaning.
b5f6766
@myronmarston myronmarston Merge pull request #783 from ChrisArcand/satisfy-custom-description
`satisfy` matcher custom descriptions
792e651
@myronmarston myronmarston Add changelog for #783.
[ci skip]
0d9e3b0
Commits on May 03, 2015
@fabschurt fabschurt Add some missing backticks and remove redundant spaces
Some references to code symbols (classes, methods…) were enclosed in
backticks, and others weren't. I think this styling should be consistent
across features, and that backticks are better for readability, so I put
some everywhere I could see they were missing.
115dc9f
@fabschurt fabschurt Add a missing word and a missing space 458221f
@fabschurt fabschurt Make a word-wrap break a bit longer
The word-wrap break here was a bit short, and Relish's MD parser seems
to honor manual breaks instead of just replacing them by spaces (like
GitHub's MD parser does), so the final output looked a little weird.
e0ca7cb
Commits on May 05, 2015
@JonRowe JonRowe Updated travis build scripts (from rspec-dev)
a3e4ef6
@JonRowe JonRowe Merge pull request #787 from rspec/update-travis-build-scripts-2015-0…
…5-05-for-master

Updates from rspec-dev (2015-05-05)
d76a494
Commits on May 12, 2015
@myronmarston myronmarston Merge pull request #786 from fabschurt/fix-features-cosmetics
[Documentation] [Features] Various cosmetic enhancements
6717b72
@myronmarston myronmarston Add new `aggregate_failure` feature.
Closes #733.
d72f9fd
@myronmarston myronmarston Improve our spec for minitest integration. b00d6bc
@myronmarston myronmarston Make `aggregate_failures` work properly on minitest. e2431c5
@myronmarston myronmarston Disable failing rubocop check. da112ca
@myronmarston myronmarston Ensure aggregated failures have stack traces. 4f24cb1
@myronmarston myronmarston Fix cucumber wip profile so it works right.
Before, it wouldn’t run anything for some reason.
c89d81b
@myronmarston myronmarston Add WIP cuke for `aggregate_failures`. 8ae2468
Commits on May 13, 2015
@myronmarston myronmarston Make `aggregate_failures` play nice with using expectations in custom…
… matchers.
cc66c17
@myronmarston myronmarston Support nested aggregation blocks.
I'm not sure why a user would want to do this, but
for consistency it should work.
c52ea82
Commits on May 14, 2015
@myronmarston myronmarston Add explanatory comments for the odd rescues. 18e3ede
@myronmarston myronmarston Fix grammar.
[ci skip]
ff32e44
@myronmarston myronmarston Add changelog [ci skip] 0fea099
@myronmarston myronmarston Update cuke.
Limit it to demonstrate the feature using only rspec-expectations.
Using the feature in the context of rspec-core results in much
improved failure output, but will make this cuke quit brittle as
changes in rspec-core's formatting logic will break the cuke here.

I'm going to add an rspec-core cuke for this feature as well.
1281d84
@myronmarston myronmarston Update docs.
701e9e2
@myronmarston myronmarston Add link back to rspec-core cuke.
669cf4f
@myronmarston myronmarston Add missing word to comment.
8f62464
Commits on May 16, 2015
@myronmarston myronmarston Merge pull request #776 from rspec/aggregate-failures
Aggregate failures
a2b71ea
Commits on May 18, 2015
@imtayadeway imtayadeway RaiseError can support first arg matcher on message.
raise_error can support a matcher on the second argument but to be
consistent should be able to take a matcher on the first (as with
Regexps, Strings). This change enables this behavior by trying to match
flexibly on either the exception or the exception's message. This also
allowed a special case for Regexps to be removed.

It also fixes a bug in custom matcher created for testing raise_error's
composability.

#762
6d2c1fe
Commits on May 19, 2015
@myronmarston myronmarston Merge pull request #782 from imtayadeway/tw/raise-error-first-arg-mat…
…chers

RaiseError can support first arg matcher on message.
d856440
@myronmarston myronmarston Changelog for #782.
[ci skip]
54a5710