Sync from SUSE:SLFO:Main rubygem-rspec-expectations revision 40f4323348f46e4458afb4ef04926ca4

This commit is contained in:
Adrian Schröter 2024-05-04 00:19:05 +02:00
commit cb13aac731
5 changed files with 854 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

70
gem2rpm.yml Normal file
View File

@ -0,0 +1,70 @@
# ---
# ## used by gem2rpm
:summary: API to express expected outcomes of a code example
# ## used by gem2rpm
# :description: |-
# this is a custom description
#
# it can be multiline
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
# :version_suffix: -x_y
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm
# :disable_automatic_rdoc_dep: true
# ## used by gem2rpm
# :preamble: |-
# BuildRequires: foobar
# Requires: foobar
# ## used by gem2rpm
# :patches:
# foo.patch: -p1
# bar.patch:
# ## used by gem2rpm
:sources:
# - foo.desktop
# - bar.desktop
# :gem_install_args: '....'
# ## used by gem2rpm
# :pre_install: |-
# %if 0%{?use_system_libev}
# export USE_VENDORED_LIBEV="no"
# %endif
# ## used by gem2rpm
# :post_install: |-
# # delete custom files here or do other fancy stuff
# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse
# ## used by gem2rpm
# :testsuite_command: |-
# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test)
# ## used by gem2rpm
# :filelist: |-
# /usr/bin/gem2rpm-opensuse
# ## used by gem2rpm
# :scripts:
# :post: |-
# /bin/echo foo
# ## used by gem_packages
# :main:
# :preamble: |-
# Requires: util-linux
# Recommends: pwgen
# :filelist: |-
# /usr/bin/gem2rpm-opensuse
# ## used by gem_packages
# :custom:
# apache:
# :preamble: |-
# Requires: .....
# :filelist: |-
# /etc/apache2/conf.d/passenger.conf
# :summary: Custom summary is optional
# :description: |-
# Custom description is optional
#
# bar
# :post: |-
# /bin/echo foo
#

BIN
rspec-expectations-3.12.0.gem (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,700 @@
-------------------------------------------------------------------
Fri Oct 28 05:05:29 UTC 2022 - Stephan Kulow <coolo@suse.com>
updated to version 3.12.0
see installed Changelog.md
-------------------------------------------------------------------
Mon Oct 10 13:19:18 UTC 2022 - Stephan Kulow <coolo@suse.com>
updated to version 3.11.1
see installed Changelog.md
-------------------------------------------------------------------
Thu Feb 24 08:35:38 UTC 2022 - Stephan Kulow <coolo@suse.com>
updated to version 3.11.0
see installed Changelog.md
Enhancements:
* Return `true` from `aggregate_failures` when no exception occurs. (Jon Rowe, #1225)
Deprecations:
* Print a deprecation message when using the implicit block expectation syntax.
(Phil Pirozhkov, #1139)
-------------------------------------------------------------------
Tue Jan 25 07:30:29 UTC 2022 - Stephan Kulow <coolo@suse.com>
updated to version 3.10.2
see installed Changelog.md
### Development
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.2...3-10-maintenance)
### 3.10.2 / 2022-01-14
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.1...v3.10.2)
Bug Fixes:
* Fix support for dynamic matchers for expectation target checks (Phil Pirozhkov, #1294)
* Fix `expect(array).to include(hash).times`, previously this would fail due to
matching the entire array as a single hash, rather than a member of the hash.
(Slava Kardakov, #1322)
* Ensure `raise_error` matches works with the `error_highlight` option from Ruby 3.1.
(Peter Goldstein, #1339)
-------------------------------------------------------------------
Wed Jan 20 07:51:44 UTC 2021 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.10.1
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.10.0...v3.10.1)
Bug Fixes:
* Allow JRuby 9.2.x.x to generate backtraces normally rather than via our
backfill workaround. (#1230, Jon Rowe)
-------------------------------------------------------------------
Wed Nov 11 08:49:03 UTC 2020 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.10.0
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.3...v3.10.0)
Enhancements:
* Allow `include` matcher to be chained with `once`, `at_least`, etc. for simple cases.
(Marc-André Lafortune, #1168)
* Add an explicit warning when `nil` is passed to `raise_error`. (Phil Pirozhkov, #1143)
* Improve `include` matcher's composability. (Phil Pirozhkov, #1155)
* Mocks expectations can now set a custom failure message.
(Benoit Tigeot and Nicolas Zermati, #1156)
* `aggregate_failures` now shows the backtrace line for each failure. (Fabricio Bedin, #1163)
* Support multiple combinations of `yield_control` modifiers like `at_least`, `at_most`.
(Jon Rowe, #1169)
* Dynamic `have_<n>` matchers now have output consistent with other dynamic matchers.
(Marc-André Lafortune, #1195)
* New config option `strict_predicate_matchers` allows predicate matcher to be strict
(i.e. match for `true` or `false`) instead of the default (match truthy vs `false` or `nil`).
(Marc-André Lafortune, #1196)
-------------------------------------------------------------------
Mon May 11 09:38:27 UTC 2020 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.9.2
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.9.1...v3.9.2)
Bug Fixes:
* Issue a proper `ArgumentError` when invalid arguments are given to `yield_control`
modifiers such as `at_least` et al. (Marc-André Lafortune, #1167)
* Prevent Ruby 2.7 keyword arguments warning from being issued by custom
matcher definitions. (Jon Rowe, #1176)
-------------------------------------------------------------------
Mon Apr 27 12:50:28 UTC 2020 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.9.1
* no changelog for version 3.9.1 found
-------------------------------------------------------------------
Tue Nov 12 14:36:18 UTC 2019 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.9.0
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.6...v3.9.0)
Enhancements:
* The `respond_to` matcher now uses the signature from `initialize` to validate checks
for `new` (unless `new` is non standard). (Jon Rowe, #1072)
* Generated descriptions for matchers now use `is expected to` rather than `should` in
line with our preferred DSL. (Pete Johns, #1080, rspec/rspec-core#2572)
* Add the ability to re-raise expectation errors when matching
with `match_when_negated` blocks. (Jon Rowe, #1130)
* Add a warning when an empty diff is produce due to identical inspect output.
(Benoit Tigeot, #1126)
-------------------------------------------------------------------
Mon Jul 8 07:51:08 UTC 2019 - Manuel Schnitzer <mschnitzer@suse.com>
- updated to version 3.8.4
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...v3.8.4)
Bug Fixes:
* Prevent false negatives when checking objects for the methods required to run the
the `be_an_instance_of` and `be_kind_of` matchers. (Nazar Matus, #1112)
-------------------------------------------------------------------
Sun May 5 09:43:21 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to version 3.8.3
see installed Changelog.md
### Development
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.3...3-8-maintenance)
### 3.8.3 / 2019-04-20
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.2...v3.8.3)
Bug Fixes:
* Prevent composed `all` matchers from leaking into their siblings leading to duplicate
failures. (Jamie English, #1086)
* Prevent objects which change their hash on comparison from failing change checks.
(Phil Pirozhkov, #1110)
* Issue an `ArgumentError` rather than a `NoMethodError` when `be_an_instance_of` and
`be_kind_of` matchers encounter objects not supporting those methods.
(Taichi Ishitani, #1107)
-------------------------------------------------------------------
Mon Oct 29 06:51:38 UTC 2018 - mschnitzer@suse.com
- updated to version 3.8.2
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.1...v3.8.2)
Bug Fixes:
* Change `include` matcher to rely on a `respond_to?(:include?)` check rather than a direct
Hash comparison before calling `to_hash` to convert to a hash. (Jordan Owens, #1073)
* Prevent unexpected call stack jumps from causing an obscure error (`IndexError`), and
replace that error with a proper informative message. (Jon Rowe, #1076)
-------------------------------------------------------------------
Fri Aug 10 10:59:44 UTC 2018 - mschnitzer@suse.com
- updated to version 3.8.1
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.8.0...v3.8.1)
Bug Fixes:
* Fix regression in `include` matcher so stopped
`expect(hash.with_indifferent_access).to include(:symbol_key)`
from working. (Eito Katagiri, #1069)
-------------------------------------------------------------------
Sun Aug 5 19:00:01 UTC 2018 - mschnitzer@suse.com
- updated to version 3.8.0
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.7.0...v3.8.0)
Enhancements:
* Improve failure message of `change(receiver, :message)` by including the
receiver as `SomeClass#some_message`. (Tomohiro Hashidate, #1005)
* Improve `change` matcher so that it can correctly detect changes in
deeply nested mutable objects (such as arrays-of-hashes-of-arrays).
The improved logic uses the before/after `hash` value to see if the
object has been mutated, rather than shallow duping the object.
(Myron Marston, #1034)
* Improve `include` matcher so that pseudo-hash objects (e.g. objects
that decorate a hash using a `SimpleDelegator` or similar) are treated
as a hash, as long as they implement `to_hash`. (Pablo Brasero, #1012)
* Add `max_formatted_output_length=` to configuration, allowing changing
the length at which we truncate large output strings.
(Sam Phippen #951, Benoit Tigeot #1056)
* Improve error message when passing a matcher that doesn't support block
expectations to a block based `expect`. (@nicktime, #1066)
-------------------------------------------------------------------
Thu Oct 26 10:12:28 UTC 2017 - coolo@suse.com
- updated to version 3.7.0
see installed Changelog.md
### 3.8 Development
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.7.0...master)
### 3.7.0 / 2017-10-17
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0...v3.7.0)
Enhancements:
* Improve compatibility with `--enable-frozen-string-literal` option
on Ruby 2.3+. (Pat Allan, #997)
-------------------------------------------------------------------
Tue May 23 10:17:36 UTC 2017 - coolo@suse.com
- updated to version 3.6.0
see installed Changelog.md
### 3.6.0 / 2017-05-04
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta2...v3.6.0)
Enhancements:
* Treat NoMethodError as a failure for comparison matchers. (Jon Rowe, #972)
* Allow for scoped aliased and negated matchers--just call
`alias_matcher` or `define_negated_matcher` from within an example
group. (Markus Reiter, #974)
* Improve failure message of `change` matcher with block and `satisfy` matcher
by including the block snippet instead of just describing it as `result` or
`block` when Ripper is available. (Yuji Nakayama, #987)
Bug Fixes:
* Fix `yield_with_args` and `yield_successive_args` matchers so that
they compare expected to actual args at the time the args are yielded
instead of at the end, in case the method that is yielding mutates the
arguments after yielding. (Alyssa Ross, #965)
### 3.6.0.beta2 / 2016-12-12
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta1...v3.6.0.beta2)
Bug Fixes:
* Using the exist matcher on `File` no longer produces a deprecation warning.
(Jon Rowe, #954)
### 3.6.0.beta1 / 2016-10-09
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0...v3.6.0.beta1)
Bug Fixes:
* Fix `contain_exactly` to work correctly with ranges. (Myron Marston, #940)
* Fix `change` to work correctly with sets. (Marcin Gajewski, #939)
-------------------------------------------------------------------
Sat Jul 2 05:21:54 UTC 2016 - coolo@suse.com
- updated to version 3.5.0
see installed Changelog.md
### 3.5.0 / 2016-07-01
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta4...v3.5.0)
**No user facing changes since beta4**
### 3.5.0.beta4 / 2016-06-05
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta3...v3.5.0.beta4)
Bug Fixes:
* Fix `include` matcher so that it provides a valid diff for hashes. (Yuji Nakayama, #916)
### 3.5.0.beta3 / 2016-04-02
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta2...v3.5.0.beta3)
Enhancements:
* Make `rspec/expectations/minitest_integration` work on Minitest::Spec
5.6+. (Myron Marston, #904)
* Add an alias `having_attributes` for `have_attributes` matcher.
(Yuji Nakayama, #905)
* Improve `change` matcher error message when block is mis-used.
(Alex Altair, #908)
### 3.5.0.beta2 / 2016-03-10
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0.beta1...v3.5.0.beta2)
Enhancements:
* Add the ability to raise an error on encountering false positives via
`RSpec::Configuration#on_potential_false_positives = :raise`. (Jon Rowe, #900)
* When using the custom matcher DSL, support new
`notify_expectation_failures: true` option for the `match` method to
allow expectation failures to be raised as normal instead of being
converted into a `false` return value for `matches?`. (Jon Rowe, #892)
Bug Fixes:
* Allow `should` deprecation check to work on `BasicObject`s. (James Coleman, #898)
### 3.5.0.beta1 / 2016-02-06
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.4.0...v3.5.0.beta1)
Enhancements:
* Make `match_when_negated` in custom matcher DSL support use of
expectations within the match logic. (Chris Arcand, #789)
Bug Fixes:
* Return `true` as expected from passing negated expectations
(such as `expect("foo").not_to eq "bar"`), so they work
properly when used within a `match` or `match_when_negated`
block. (Chris Arcand, #789)
-------------------------------------------------------------------
Fri Nov 13 05:38:50 UTC 2015 - coolo@suse.com
- updated to version 3.4.0
see installed Changelog.md
### 3.4.0 / 2015-11-11
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.1...v3.4.0)
Enhancements:
* Warn when `RSpec::Matchers` is included in a superclass after it has
already been included in a subclass on MRI 1.9, since that situation
can cause uses of `super` to trigger infinite recursion. (Myron Marston, #816)
* Stop rescuing `NoMemoryError`, `SignalExcepetion`, `Interrupt` and
`SystemExit`. It is dangerous to interfere with these. (Myron Marston, #845)
* Add `#with_captures` to the
[match matcher](https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/match-matcher)
which allows a user to specify expected captures when matching a regex
against a string. (Sam Phippen, #848)
* Always print compound failure messages in the multi-line form. Trying
to print it all on a single line didn't read very well. (Myron Marston, #859)
Bug Fixes:
* Fix failure message from dynamic predicate matchers when the object
does not respond to the predicate so that it is inspected rather
than relying upon it's `to_s` -- that way for `nil`, `"nil"` is
printed rather than an empty string. (Myron Marston, #841)
* Fix SystemStackError raised when diffing an Enumerable object
whose `#each` includes the object itself. (Yuji Nakayama, #857)
-------------------------------------------------------------------
Thu Jul 16 04:32:17 UTC 2015 - coolo@suse.com
- updated to version 3.3.1
see installed Changelog.md
### 3.3.1 / 2015-07-15
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.3.0...v3.3.1)
Bug Fixes:
* Fix `be >`, `be <`, etc so that it fails rather than allowing an
argument error to be raised when compared against an object of the
wrong type. This allows it to be used in composed matcher expressions
against heterogeneous objects. (Dennis Günnewig, #809)
* Fix `respond_to` to work properly on target objects
that redefine the `method` method. (unmanbearpig, #821)
-------------------------------------------------------------------
Sat Jun 13 04:34:52 UTC 2015 - coolo@suse.com
- updated to version 3.3.0
see installed Changelog.md
### 3.3.0 / 2015-06-12
[Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.2.1...v3.3.0)
Enhancements:
* Expose `RSpec::Matchers::EnglishPhrasing` to make it easier to write
nice failure messages in custom matchers. (Jared Beck, #736)
* Add `RSpec::Matchers::FailMatchers`, a mixin which provides
`fail`, `fail_with` and `fail_including` matchers for use in
specifying that an expectation fails for use by
extension/plugin authors. (Charlie Rudolph, #729)
* Avoid loading `tempfile` (and its dependencies) unless
it is absolutely needed. (Myron Marston, #735)
* Improve failure output when attempting to use `be_true` or `be_false`.
(Tim Wade, #744)
* Define `RSpec::Matchers#respond_to_missing?` so that
`RSpec::Matchers#respond_to?` and `RSpec::Matchers#method` handle
dynamic predicate matchers. (Andrei Botalov, #751)
* Use custom Time/DateTime/BigDecimal formatting for all matchers
so they are consistently represented in failure messages.
(Gavin Miller, #740)
* Add configuration to turn off warnings about matcher combinations that
may cause false positives. (Jon Rowe, #768)
* Warn when using a bare `raise_error` matcher that you may be subject to
false positives. (Jon Rowe, #768)
* Warn rather than raise when using the`raise_error` matcher in negative
expectations that may be subject to false positives. (Jon Rowe, #775)
* Improve failure message for `include(a, b, c)` so that if `a` and `b`
are included the failure message only mentions `c`. (Chris Arcand, #780)
* Allow `satisfy` matcher to take an optional description argument
that will be used in the `description`, `failure_message` and
`failure_message_when_negated` in place of the undescriptive
"sastify block". (Chris Arcand, #783)
* Add new `aggregate_failures` API that allows multiple independent
expectations to all fail and be listed in the failure output, rather
than the example aborting on the first failure. (Myron Marston, #776)
* Improve `raise_error` matcher so that it can accept a matcher as a single argument
that matches the message. (Time Wade, #782)
Bug Fixes:
* Make `contain_exactly` / `match_array` work with strict test doubles
that have not defined `<=>`. (Myron Marston, #758)
* Fix `include` matcher so that it omits the diff when it would
confusingly highlight items that are actually included but are not
an exact match in a line-by-line diff. (Tim Wade, #763)
* Fix `match` matcher so that it does not blow up when matching a string
or regex against another matcher (rather than a string or regex).
(Myron Marston, #772)
* Silence whitespace-only diffs. (Myron Marston, #801)
-------------------------------------------------------------------
Sat Apr 11 06:03:42 UTC 2015 - coolo@suse.com
- updated to version 3.2.1
Bug Fixes:
* Prevent `Range`s from being enumerated when generating matcher
descriptions. (Jon Rowe, #755)
* Ensure exception messages are compared as strings in the `raise_error`
matcher. (Jon Rowe, #755)
-------------------------------------------------------------------
Fri Feb 6 18:18:17 UTC 2015 - coolo@suse.com
- updated to version 3.2.0
Enhancements:
* Add `block_arg` method to custom matcher API, which allows you to
access the block passed to a custom matcher, if there is one.
(Mike Dalton, #645)
* Provide more detail in failure message of `yield_control` matcher.
(Jon Rowe, #650)
* Add a shorthand syntax for `chain` in the matcher DSL which assigns values
for use elsewhere, for example `chain :and_smaller_than, :small_value`
creates an `attr_reader` for `small_value` (Tom Stuart, #644)
* Provide a more helpful deprecation message when using the `should` syntax.
(Elia Schito, #663)
* Provide more detail in the `have_attributes` matcher failure message.
(Jon Rowe, #668)
* Make the `have_attributes` matcher diffable.
(Jon Rowe, Alexey Fedorov, #668)
* Add `output(...).to_std(out|err)_from_any_process` as alternatives
to `output(...).to_std(out|err)`. The latter doesn't work when a sub
process writes to the named stream but is much faster.
(Alex Genco, #700)
* Improve compound matchers (created by `and` and `or`) so that diffs
are included in failures when one or more of their matchers
are diffable. (Alexey Fedorov, #713)
Bug Fixes:
* Avoid calling `private_methods` from the `be` predicate matcher on
the target object if the object publicly responds to the predicate
method. This avoids a possible error that can occur if the object
raises errors from `private_methods` (which can happen with celluloid
objects). (@chapmajs, #670)
* Make `yield_control` (with no modifier) default to
`at_least(:once)` rather than raising a confusing error
when multiple yields are encountered.
(Myron Marston, #675)
-------------------------------------------------------------------
Tue Jan 20 16:16:29 UTC 2015 - dmueller@suse.com
- update to 3.1.2:
* Rails 4.1 enablement
[ full changelog is very long, see
https://github.com/rspec/rspec-expectations/blob/master/Changelog.md
for details ]
-------------------------------------------------------------------
Mon Oct 13 18:41:38 UTC 2014 - coolo@suse.com
- adapt to new rubygem packaging
-------------------------------------------------------------------
Thu Feb 6 18:00:15 UTC 2014 - coolo@suse.com
- updated to version 2.14.5
Bug fixes
* Fix wrong matcher descriptions with falsey expected value (yujinakayama)
-------------------------------------------------------------------
Fri Nov 22 08:40:35 UTC 2013 - coolo@suse.com
- updated to version 2.14.4
[full changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.3...v2.14.4)
Bug fixes
* Make the `match` matcher produce a diff output. (Jon Rowe, Ben Moss)
* Choose encoding for diff's more intelligently, and when all else fails fall
back to default internal encoding with replacing characters. (Jon Rowe)
-------------------------------------------------------------------
Fri Oct 4 07:17:57 UTC 2013 - coolo@suse.com
- updated to version 2.14.3
Bug fixes
* Fix operator matchers (`should` syntax) when `method` is redefined on target.
(Brandon Turner)
* Fix diffing of hashes with object based keys. (Jon Rowe)
* Fix operator matchers (`should` syntax) when operator is defined via
`method_missing` (Jon Rowe)
-------------------------------------------------------------------
Mon Aug 26 05:05:51 UTC 2013 - coolo@suse.com
- updated to version 2.14.2
Bug fixes
* Fix `be_<predicate>` matcher to not support operator chaining like the
`be` matcher does (e.g. `be == 5`). This led to some odd behaviors
since `be_<predicate> == anything` returned a `BeComparedTo` matcher
and was thus always truthy. This was a consequence of the implementation
(e.g. subclassing the basic `Be` matcher) and was not intended behavior.
(Myron Marston).
* Fix `change` matcher to compare using `==` in addition to `===`. This
is important for an expression like:
`expect {}.to change { a.class }.from(ClassA).to(ClassB)` because
`SomeClass === SomeClass` returns false. (Myron Marston)
### 2.14.1 / 2013-08-08
[full changelog](http://github.com/rspec/rspec-expectations/compare/v2.14.0...2.14.1)
Bug fixes
* Ensure diff output uses the same encoding as the encoding of
the string being diff'd to prevent `Encoding::UndefinedConversionError`
-------------------------------------------------------------------
Wed Jul 31 05:45:54 UTC 2013 - coolo@suse.com
- updated to version 2.14.0
Bug fixes
* Values that are not matchers use `#inspect`, rather than `#description` for
documentation output (Andy Lindeman, Sam Phippen).
* Make `expect(a).to be_within(x).percent_of(y)` work with negative y
(Katsuhiko Nishimra).
* Make the `be_predicate` matcher work as expected used with `expect{...}.to
change...` (Sam Phippen).
### 2.14.0.rc1 / 2013-05-27
[full changelog](http://github.com/rspec/rspec-expectations/compare/v2.13.0...v2.14.0.rc1)
Enhancements
* Enhance `yield_control` so that you can specify an exact or relative
number of times: `expect { }.to yield_control.exactly(3).times`,
`expect { }.to yield_control.at_least(2).times`, etc (Bartek
Borkowski).
* Make the differ that is used when an expectation fails better handle arrays
by splitting each element of the array onto its own line. (Sam Phippen)
* Accept duck-typed strings that respond to `:to_str` as expectation messages.
(Toby Ovod-Everett)
Bug fixes
* Fix differ to not raise errors when dealing with differently-encoded
strings (Jon Rowe).
* Fix `expect(something).to be_within(x).percent_of(y)` where x and y are both
integers (Sam Phippen).
* Fix `have` matcher to handle the fact that on ruby 2.0,
`Enumerator#size` may return nil (Kenta Murata).
* Fix `expect { raise s }.to raise_error(s)` where s is an error instance
on ruby 2.0 (Sam Phippen).
* Fix `expect(object).to raise_error` passing. This now warns the user and
fails the spec (tomykaira).
Deprecations
* Deprecate `expect { }.not_to raise_error(SpecificErrorClass)` or
`expect { }.not_to raise_error("some specific message")`. Using
these was prone to hiding failures as they would allow _any other
error_ to pass. (Sam Phippen and David Chelimsky)
-------------------------------------------------------------------
Sun Mar 3 19:44:25 UTC 2013 - coolo@suse.com
- updated to version 2.13.0
Enhancements
* Add support for percent deltas to `be_within` matcher:
`expect(value).to be_within(10).percent_of(expected)`
(Myron Marston).
* Add support to `include` matcher to allow it to be given a list
of matchers as the expecteds to match against (Luke Redpath).
Bug fixes
* Fix `change` matcher so that it dups strings in order to handle
mutated strings (Myron Marston).
* Fix `should be =~ /some regex/` / `expect(...).to be =~ /some regex/`.
Previously, these either failed with a confusing `undefined method
matches?' for false:FalseClass` error or were no-ops that didn't
actually verify anything (Myron Marston).
* Add compatibility for diff-lcs 1.2 and relax the version
constraint (Peter Goldstein).
* Fix DSL-generated matchers to allow multiple instances of the
same matcher in the same example to have different description
and failure messages based on the expected value (Myron Marston).
* Prevent `undefined method #split for Array` error when dumping
the diff of an array of multiline strings (Myron Marston).
* Don't blow up when comparing strings that are in an encoding
that is not ASCII compatible (Myron Marston).
* Remove confusing "Check the implementation of #==" message
printed for empty diffs (Myron Marston).
-------------------------------------------------------------------
Tue Dec 18 14:52:48 UTC 2012 - coolo@suse.com
- updated to version 2.12.1
[full changelog](http://github.com/rspec/rspec-expectations/compare/v2.12.0...v2.12.1)
Bug fixes
* Improve the failure message for an expression like
`{}.should =~ {}`. (Myron Marston and Andy Lindeman)
* Provide a `match_regex` alias so that custom matchers
built using the matcher DSL can use it (since `match`
is a different method in that context).
(Steven Harman)
-------------------------------------------------------------------
Tue Nov 13 14:04:51 UTC 2012 - coolo@suse.com
- updated to version 2.12.0
Enhancements
* Colorize diffs if the `--color` option is configured. (Alex Coplan)
* Include backtraces in unexpected errors handled by `raise_error`
matcher (Myron Marston)
* Print a warning when users accidentally pass a non-string argument
as an expectation message (Sam Phippen)
* `=~` and `match_array` matchers output a more useful error message when
the actual value is not an array (or an object that responds to `#to_ary`)
(Sam Phippen)
Bug fixes
* Fix `include` matcher so that `expect({}).to include(:a => nil)`
fails as it should (Sam Phippen).
* Fix `be_an_instance_of` matcher so that `Class#to_s` is used in the
description rather than `Class#inspect`, since some classes (like
`ActiveRecord::Base`) define a long, verbose `#inspect`.
(Tom Stuart)
-------------------------------------------------------------------
Mon Sep 10 13:05:01 UTC 2012 - coolo@suse.com
- updated to version 2.11.3
[full changelog](http://github.com/rspec/rspec-expectations/compare/v2.11.2...v.2.11.3)
Bug fixes
* Fix (and deprecate) `expect { }.should` syntax so that it works even
though it was never a documented or intended syntax. It worked as a
consequence of the implementation of `expect` in RSpec 2.10 and
earlier. (Myron Marston)
* Ensure #== is defined on build in matchers so that they can be composed.
For example:
expect {
user.emailed!
}.to change { user.last_emailed_at }.to be_within(1.second).of(Time.zone.now)
-------------------------------------------------------------------
Sun Jul 29 11:26:08 UTC 2012 - coolo@suse.com
- initial package

View File

@ -0,0 +1,58 @@
#
# spec file for package rubygem-rspec-expectations
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#
# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
# All sections marked as MANUAL, license headers, summaries and descriptions
# can be maintained in that file. Please consult this file before editing any
# of those fields
#
Name: rubygem-rspec-expectations
Version: 3.12.0
Release: 0
%define mod_name rspec-expectations
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{ruby >= 1.8.7}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: ruby-macros >= 5
URL: https://github.com/rspec/rspec-expectations
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: API to express expected outcomes of a code example
License: MIT
Group: Development/Languages/Ruby
%description
rspec-expectations provides a simple, readable API to express expected
outcomes of a code example.
%prep
%build
%install
%gem_install \
--doc-files="Changelog.md LICENSE.md README.md" \
-f
%gem_packages
%changelog