-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge rspec repos #48
base: main
Are you sure you want to change the base?
Commits on Jan 3, 2018
-
Upgrade rubocop, motivated by CVE.
Defaulted most new things to off, though tried to keep performance and linters.
Configuration menu - View commit details
-
Copy full SHA for ff84fb4 - Browse repository at this point
Copy the full SHA ff84fb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 918f3f7 - Browse repository at this point
Copy the full SHA 918f3f7View commit details
Commits on Jan 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fd81ea3 - Browse repository at this point
Copy the full SHA fd81ea3View commit details
Commits on Jan 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 536b199 - Browse repository at this point
Copy the full SHA 536b199View commit details -
Merge pull request #2501 from sorah/safe-thread-local
$SAFE became a global variable in Ruby 2.6
Configuration menu - View commit details
-
Copy full SHA for c4d3073 - Browse repository at this point
Copy the full SHA c4d3073View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f8e831 - Browse repository at this point
Copy the full SHA 1f8e831View commit details -
Update yard to 0.9.12, motivated by CVE.
* Added @Private tag for nested class (no longer inherits). * Included full method definition in generated should/should_not docs. * Used const_set for constant redefinition, since using = confuses YARD. * Added short descriptions to methods that are @api private. Could probably just @Private the lot but didn't want to make that decision here.
Configuration menu - View commit details
-
Copy full SHA for a85a42c - Browse repository at this point
Copy the full SHA a85a42cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcc2aa3 - Browse repository at this point
Copy the full SHA fcc2aa3View commit details
Commits on Jan 10, 2018
-
Merge pull request #1038 from rspec/upgrade-yard
Update yard to 0.9.12, motivated by CVE.
Configuration menu - View commit details
-
Copy full SHA for 5293ded - Browse repository at this point
Copy the full SHA 5293dedView commit details -
Merge pull request #2498 from rspec/upgrade-rubocop
Upgrade rubocop, motivated by CVE.
Configuration menu - View commit details
-
Copy full SHA for b48d851 - Browse repository at this point
Copy the full SHA b48d851View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc60dbe - Browse repository at this point
Copy the full SHA dc60dbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 267ecec - Browse repository at this point
Copy the full SHA 267ececView commit details -
Duck-typing support for the
include
matcher (#1012)* If it quacks like a Hash, treat it like a Hash * DRY * Not loaded by default in old Rubies * Trying to get the build passing... * No need to put this on Relish * Not much value to pseudo-hashes allowed as expecteds
Configuration menu - View commit details
-
Copy full SHA for a0c3958 - Browse repository at this point
Copy the full SHA a0c3958View commit details -
Configuration menu - View commit details
-
Copy full SHA for fffbfda - Browse repository at this point
Copy the full SHA fffbfdaView commit details -
Merge pull request #1040 from rspec/upgrade-rubocop
Upgrade rubocop, motivated by CVE.
Configuration menu - View commit details
-
Copy full SHA for bee4e14 - Browse repository at this point
Copy the full SHA bee4e14View commit details
Commits on Jan 13, 2018
-
Simplify BisectFormatter using
example_finished
notification.We did not offer it when the BisectFormatter was written but it nicely simplifies it now. Also, get the expected failures in `initialize` instead of `start`.
Configuration menu - View commit details
-
Copy full SHA for a35be9f - Browse repository at this point
Copy the full SHA a35be9fView commit details
Commits on Jan 16, 2018
-
Merge pull request #2502 from rspec/myron/simplify-bisect-formatter
Simplify BisectFormatter using `example_finished` notification.
Configuration menu - View commit details
-
Copy full SHA for b836d71 - Browse repository at this point
Copy the full SHA b836d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94de620 - Browse repository at this point
Copy the full SHA 94de620View commit details -
Move responsibility for managing server lifecycle into ShellRunner.
It is not going to be needed for the ForkRunner, but it will have its own lifecycle to manage, so `start { }` makes a convenient interface for both.
Configuration menu - View commit details
-
Copy full SHA for 9811a38 - Browse repository at this point
Copy the full SHA 9811a38View commit details -
Extract bisect formatter base class.
Also, rename the bisect formatter to indicate it communicates over DRb.
Configuration menu - View commit details
-
Copy full SHA for 9d2893f - Browse repository at this point
Copy the full SHA 9d2893fView commit details -
Refactor: create factory method for bisect failed error.
Also, move it to `utilities` as the server will not always be loaded.
Configuration menu - View commit details
-
Copy full SHA for 83f7105 - Browse repository at this point
Copy the full SHA 83f7105View commit details -
Allow users to set a formatter instance instead of just a class.
This is useful for when you want to initialize your formatter with extra state. The simplest approach is for you to instantiate the formatter yourself instead of depending on RSpec to do it and trying to update the formatter with your desired state later.
Configuration menu - View commit details
-
Copy full SHA for 1488497 - Browse repository at this point
Copy the full SHA 1488497View commit details
Commits on Jan 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e7da350 - Browse repository at this point
Copy the full SHA e7da350View commit details
Commits on Jan 20, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 8e0e97b - Browse repository at this point
Copy the full SHA 8e0e97bView commit details -
Merge pull request #2505 from garettarrowood/add_yard_return_values_i…
…n_configuration [#2494] Add yard return values to Rspec::Core::Configuration
Configuration menu - View commit details
-
Copy full SHA for a1813f0 - Browse repository at this point
Copy the full SHA a1813f0View commit details -
Merge pull request #2504 from rspec/myron/handle-require-errors
Nicely handle errors encountered from processing `--require`.
Configuration menu - View commit details
-
Copy full SHA for 88bd0c9 - Browse repository at this point
Copy the full SHA 88bd0c9View commit details
Commits on Jan 21, 2018
-
Merge pull request #2503 from rspec/myron/bisect-forker-prep-refactor…
…ings Bisect forker prep refactorings
Configuration menu - View commit details
-
Copy full SHA for 8492f12 - Browse repository at this point
Copy the full SHA 8492f12View commit details
Commits on Jan 23, 2018
-
Avoid using
RSpec.configuration
from the bisect coordinator.Use a simple `Notifier` instead of the full-fledged `Reporter` (which required the use of config). Avoiding config is necessary for us to be able to use the new forking runner for bisect.
Configuration menu - View commit details
-
Copy full SHA for 925bc20 - Browse repository at this point
Copy the full SHA 925bc20View commit details -
Merge pull request #2507 from rspec/myron/bisect-formatter-refactor
Avoid using `RSpec.configuration` from the bisect coordinator.
Configuration menu - View commit details
-
Copy full SHA for 7f607f0 - Browse repository at this point
Copy the full SHA 7f607f0View commit details
Commits on Jan 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 534c00f - Browse repository at this point
Copy the full SHA 534c00fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8716a5 - Browse repository at this point
Copy the full SHA d8716a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 144c546 - Browse repository at this point
Copy the full SHA 144c546View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34c8d39 - Browse repository at this point
Copy the full SHA 34c8d39View commit details
Commits on Jan 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 155bd0d - Browse repository at this point
Copy the full SHA 155bd0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9e64bc - Browse repository at this point
Copy the full SHA a9e64bcView commit details
Commits on Feb 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1484daa - Browse repository at this point
Copy the full SHA 1484daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9dcc9 - Browse repository at this point
Copy the full SHA 0e9dcc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d53a601 - Browse repository at this point
Copy the full SHA d53a601View commit details
Commits on Feb 13, 2018
-
Merge pull request #2511 from rspec/myron/bisect-forker
Improve performance of bisect using new forking bisect runner
Configuration menu - View commit details
-
Copy full SHA for cf84052 - Browse repository at this point
Copy the full SHA cf84052View commit details
Commits on Feb 15, 2018
-
Use https:// instead of git:// for README URLs
See rspec/rspec-core#2327. git:// URLs are insecure and cause recent versions of Bundler to emit a warning.
Configuration menu - View commit details
-
Copy full SHA for bfb3ab8 - Browse repository at this point
Copy the full SHA bfb3ab8View commit details -
Merge pull request #2518 from alyssais/README_git_https
Use https:// instead of git:// for README URLs
Configuration menu - View commit details
-
Copy full SHA for 13e57c5 - Browse repository at this point
Copy the full SHA 13e57c5View commit details -
Use https:// instead of git:// for DEV-README
I missed this in cf84052.
Configuration menu - View commit details
-
Copy full SHA for b55a0be - Browse repository at this point
Copy the full SHA b55a0beView commit details -
Merge pull request #2519 from alyssais/DEV-README_git_https
Use https:// instead of git:// for DEV-README
Configuration menu - View commit details
-
Copy full SHA for 5027abb - Browse repository at this point
Copy the full SHA 5027abbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a81b067 - Browse repository at this point
Copy the full SHA a81b067View commit details
Commits on Feb 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 50c770b - Browse repository at this point
Copy the full SHA 50c770bView commit details
Commits on Feb 28, 2018
-
Deprecate safe_level of
ERB.new
in Ruby 2.6This commit fixes the following build error of ruby-head (Ruby 2.6) . ```console Failures: 1) RSpec::Core::Formatters::ProgressFormatter produces the expected full output Failure/Error: @example_group_instance.instance_exec(*args, &block) RuntimeError: Warnings were generated: /home/travis/build/rspec/rspec-core/lib/rspec/core/configuration_options.rb:171: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments. /home/travis/build/rspec/rspec-core/lib/rspec/core/configuration_options.rb:171: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead. # /home/travis/build/rspec/rspec-support/lib/rspec/support/spec/stderr_splitter.rb:54:in `verify_no_warnings!' # /home/travis/build/rspec/rspec-support/lib/rspec/support/spec.rb:25:in `block (2 levels) in <top (required)>' # ./lib/rspec/core/example.rb:447:in `instance_exec' # ./lib/rspec/core/example.rb:447:in `instance_exec' # ./lib/rspec/core/hooks.rb:355:in `run' # ./lib/rspec/core/hooks.rb:507:in `block in run_owned_hooks_for' # ./lib/rspec/core/hooks.rb:506:in `each' # ./lib/rspec/core/hooks.rb:506:in `run_owned_hooks_for' # ./lib/rspec/core/hooks.rb:593:in `block in run_example_hooks_for' # ./lib/rspec/core/hooks.rb:592:in `each' # ./lib/rspec/core/hooks.rb:592:in `run_example_hooks_for' # ./lib/rspec/core/hooks.rb:463:in `run' # ./lib/rspec/core/example.rb:507:in `run_after_example' # ./lib/rspec/core/example.rb:273:in `block in run' # ./lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' # ./lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' # ./lib/rspec/core/hooks.rb:464:in `block in run' # ./lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for' # ./lib/rspec/core/example.rb:342:in `call' # ./spec/support/sandboxing.rb:16:in `block (3 levels) in <top (required)>' # ./lib/rspec/core/sandbox.rb:29:in `sandboxed' # ./spec/support/sandboxing.rb:7:in `block (2 levels) in <top (required)>' # ./lib/rspec/core/example.rb:447:in `instance_exec' # ./lib/rspec/core/example.rb:447:in `instance_exec' # ./lib/rspec/core/hooks.rb:373:in `execute_with' # ./lib/rspec/core/hooks.rb:606:in `block (2 levels) in run_around_example_hooks_for' # ./lib/rspec/core/example.rb:342:in `call' # ./lib/rspec/core/hooks.rb:607:in `run_around_example_hooks_for' # ./lib/rspec/core/hooks.rb:464:in `run' # ./lib/rspec/core/example.rb:457:in `with_around_example_hooks' # ./lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' # ./lib/rspec/core/example.rb:251:in `run' # ./lib/rspec/core/example_group.rb:629:in `block in run_examples' # ./lib/rspec/core/example_group.rb:625:in `map' # ./lib/rspec/core/example_group.rb:625:in `run_examples' # ./lib/rspec/core/example_group.rb:591:in `run' # ./lib/rspec/core/runner.rb:116:in `block (3 levels) in run_specs' # ./lib/rspec/core/runner.rb:116:in `map' # ./lib/rspec/core/runner.rb:116:in `block (2 levels) in run_specs' # ./lib/rspec/core/configuration.rb:1975:in `with_suite_hooks' # ./lib/rspec/core/runner.rb:111:in `block in run_specs' # ./lib/rspec/core/reporter.rb:74:in `report' # ./lib/rspec/core/runner.rb:110:in `run_specs' # ./lib/rspec/core/runner.rb:87:in `run' # ./lib/rspec/core/runner.rb:71:in `run' # ./lib/rspec/core/runner.rb:45:in `invoke' # ./exe/rspec:4:in `<top (required)>' # script/rspec_with_simplecov:42:in `load' # script/rspec_with_simplecov:42:in `<main>' ``` https://travis-ci.org/rspec/rspec-core/jobs/346647744#L1004-L1060 The following addresses are related commits. - ruby/ruby@cc777d0 - ruby/ruby@8b9a3ea
Configuration menu - View commit details
-
Copy full SHA for c1b5695 - Browse repository at this point
Copy the full SHA c1b5695View commit details -
Configuration menu - View commit details
-
Copy full SHA for f34255c - Browse repository at this point
Copy the full SHA f34255cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9be90f - Browse repository at this point
Copy the full SHA d9be90fView commit details
Commits on Mar 1, 2018
-
Merge pull request #2524 from benoittgt/update-travis-build-scripts-2…
…018-02-27-for-master Updated travis build scripts (from rspec-dev)
Configuration menu - View commit details
-
Copy full SHA for b8225ba - Browse repository at this point
Copy the full SHA b8225baView commit details -
Merge pull request #2525 from koic/deprecate_safe_level_of_erb_new_in…
…_ruby_2_6 Deprecate safe_level of `ERB.new` in Ruby 2.6
Configuration menu - View commit details
-
Copy full SHA for fafbed5 - Browse repository at this point
Copy the full SHA fafbed5View commit details -
- After 2.6 is released we still have to support older ruby versions so we cannot remove this. - We can only remove it once we stop supporting RUBY_VERSION < 2.6. - We search for RUBY_VERSION uses when dropping old versions and do not need a FIXME. [ci skip]
Configuration menu - View commit details
-
Copy full SHA for 6fdcbfe - Browse repository at this point
Copy the full SHA 6fdcbfeView commit details
Commits on Mar 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1aad4d7 - Browse repository at this point
Copy the full SHA 1aad4d7View commit details -
Merge pull request #1050 from benoittgt/update-travis-build-scripts-2…
…018-03-04-for-master Updated travis build scripts (from rspec-dev)
Configuration menu - View commit details
-
Copy full SHA for 5f8aad1 - Browse repository at this point
Copy the full SHA 5f8aad1View commit details
Commits on Mar 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for a876039 - Browse repository at this point
Copy the full SHA a876039View commit details
Commits on Mar 19, 2018
-
Merge pull request #1052 from rspec/support_ffi_on_rbx
Pin ffi on RBX / 1.8
Configuration menu - View commit details
-
Copy full SHA for 250631c - Browse repository at this point
Copy the full SHA 250631cView commit details
Commits on Mar 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 5ef72a4 - Browse repository at this point
Copy the full SHA 5ef72a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d544875 - Browse repository at this point
Copy the full SHA d544875View commit details -
Merge pull request #2531 from garybernhardt/fix_spec_name_assertion_m…
…ismatch Fix spec name/assertion mismatch.
Sam Phippen authoredMar 27, 2018 Configuration menu - View commit details
-
Copy full SHA for 5ec33d6 - Browse repository at this point
Copy the full SHA 5ec33d6View commit details -
Merge pull request #2532 from garybernhardt/dont_write_status_file_du…
…ring_dry_runs Don't write status file during dry runs.
Configuration menu - View commit details
-
Copy full SHA for a8aae27 - Browse repository at this point
Copy the full SHA a8aae27View commit details
Commits on Apr 3, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fe11ce3 - Browse repository at this point
Copy the full SHA fe11ce3View commit details
Commits on Apr 5, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9d22620 - Browse repository at this point
Copy the full SHA 9d22620View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb87930 - Browse repository at this point
Copy the full SHA cb87930View commit details -
Merge pull request #2534 from rspec/update-travis-build-scripts-2018-…
…04-03-for-master Updated travis build scripts (from rspec-dev)
Configuration menu - View commit details
-
Copy full SHA for d21fb96 - Browse repository at this point
Copy the full SHA d21fb96View commit details -
Merge pull request #1054 from rspec/update-travis-build-scripts-2018-…
…04-03-for-master Updates from rspec-dev (2018-04-03)
Configuration menu - View commit details
-
Copy full SHA for f4e95d4 - Browse repository at this point
Copy the full SHA f4e95d4View commit details
Commits on Apr 17, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d685257 - Browse repository at this point
Copy the full SHA d685257View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1347ec - Browse repository at this point
Copy the full SHA b1347ecView commit details
Commits on Apr 18, 2018
-
Merge pull request #2537 from benoittgt/update-common-markdown-files-…
…2018-04-17-for-master Updated common markdown files (from rspec-dev) [ci skip]
Configuration menu - View commit details
-
Copy full SHA for 400b1e0 - Browse repository at this point
Copy the full SHA 400b1e0View commit details -
Merge pull request #1055 from benoittgt/update-common-markdown-files-…
…2018-04-17-for-master Updated common markdown files (from rspec-dev) [ci skip]
Configuration menu - View commit details
-
Copy full SHA for a4f2547 - Browse repository at this point
Copy the full SHA a4f2547View commit details
Commits on Apr 22, 2018
-
Add support for $XDG_CONFIG_HOME/rspec/options
This is a XDG Base Directory Specification compatible alternative to ~/.rspec. ~/.rspec has higher precedence in order to reduce risk in cases where users have a file like this dormant. It is unlikely, but this way the risk is lower. If $XDG_CONFIG_HOME is not set, it will fall back to ~/.config, per the specification. Other changes: The "isolated home" example tag has been extended with a `create_fixture_file` helper that also takes care to create the directory where the file resides in, if it does not already exist. Other file creations have been migrated to this method for consistency. The method is only available when an example is tagged with `:isolated_home => true`, for safety. In case the developer running these tests have a custom $XDG_CONFIG_HOME set, it is cleared out when using an isolated home so their real files are not touched.
Configuration menu - View commit details
-
Copy full SHA for 7579efa - Browse repository at this point
Copy the full SHA 7579efaView commit details
Commits on Apr 24, 2018
-
fix ArgumentError: bad value for range
If the two arrays are the same, `find()` returns `nil`. This case must be accounted for
Configuration menu - View commit details
-
Copy full SHA for f583a52 - Browse repository at this point
Copy the full SHA f583a52View commit details -
Configuration menu - View commit details
-
Copy full SHA for c983ed9 - Browse repository at this point
Copy the full SHA c983ed9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4fba0 - Browse repository at this point
Copy the full SHA 0b4fba0View commit details
Commits on Apr 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 17485de - Browse repository at this point
Copy the full SHA 17485deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7220c35 - Browse repository at this point
Copy the full SHA 7220c35View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8d1c60 - Browse repository at this point
Copy the full SHA b8d1c60View commit details -
Configuration menu - View commit details
-
Copy full SHA for f165f86 - Browse repository at this point
Copy the full SHA f165f86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0ba25 - Browse repository at this point
Copy the full SHA 8e0ba25View commit details -
Merge pull request #1056 from benoittgt/samphippen/make-object-format…
…ter-length-configurable Fix tests for 951 + rdoc first word needs to match the variable
Configuration menu - View commit details
-
Copy full SHA for 3e5fc98 - Browse repository at this point
Copy the full SHA 3e5fc98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9989d87 - Browse repository at this point
Copy the full SHA 9989d87View commit details -
Add doc to inform that max_formatted_output_length can be set to nil …
…(#1057) See : rspec/rspec-expectations#1056 (comment)
Configuration menu - View commit details
-
Copy full SHA for 20788e1 - Browse repository at this point
Copy the full SHA 20788e1View commit details
Commits on May 2, 2018
-
squash! Add support for $XDG_CONFIG_HOME/rspec/options
XDG config file completely overrides HOME file.
Configuration menu - View commit details
-
Copy full SHA for 016f336 - Browse repository at this point
Copy the full SHA 016f336View commit details
Commits on May 9, 2018
-
Merge pull request #2538 from Mange/xdg-config-home
Add support for XDG base directory support for configuration file
Configuration menu - View commit details
-
Copy full SHA for 5e395e2 - Browse repository at this point
Copy the full SHA 5e395e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d7d4d3 - Browse repository at this point
Copy the full SHA 9d7d4d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b6b9c3 - Browse repository at this point
Copy the full SHA 7b6b9c3View commit details
Commits on Jun 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 848fcb4 - Browse repository at this point
Copy the full SHA 848fcb4View commit details
Commits on Jul 6, 2018
-
Refine ExpectationNotMetError message
n.epifanov committedJul 6, 2018 Configuration menu - View commit details
-
Copy full SHA for ee52e31 - Browse repository at this point
Copy the full SHA ee52e31View commit details -
Merge pull request #1066 from nicktime/refine-expectationnotmeterror-…
…message Refine ExpectationNotMetError message
Configuration menu - View commit details
-
Copy full SHA for 2930174 - Browse repository at this point
Copy the full SHA 2930174View commit details -
Configuration menu - View commit details
-
Copy full SHA for a132fa4 - Browse repository at this point
Copy the full SHA a132fa4View commit details
Commits on Jul 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 25960d4 - Browse repository at this point
Copy the full SHA 25960d4View commit details -
Merge pull request #2552 from p-mongo/filter-examples-master
Add filter_examples method
Configuration menu - View commit details
-
Copy full SHA for 30d2110 - Browse repository at this point
Copy the full SHA 30d2110View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5ce1b2 - Browse repository at this point
Copy the full SHA c5ce1b2View commit details
Commits on Aug 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f6f200a - Browse repository at this point
Copy the full SHA f6f200aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0be12e3 - Browse repository at this point
Copy the full SHA 0be12e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 181a86e - Browse repository at this point
Copy the full SHA 181a86eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e1b596 - Browse repository at this point
Copy the full SHA 3e1b596View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ed5cf - Browse repository at this point
Copy the full SHA 76ed5cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96450f8 - Browse repository at this point
Copy the full SHA 96450f8View commit details
Commits on Aug 6, 2018
-
call to_hash only when object is not a Hash in RSpec::Matcher::BuiltI…
…n::Include (#1069)
Configuration menu - View commit details
-
Copy full SHA for 3a0b5e4 - Browse repository at this point
Copy the full SHA 3a0b5e4View commit details
Commits on Aug 7, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 31f108e - Browse repository at this point
Copy the full SHA 31f108eView commit details
Commits on Sep 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 8f3b15c - Browse repository at this point
Copy the full SHA 8f3b15cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f855006 - Browse repository at this point
Copy the full SHA f855006View commit details
Commits on Sep 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2c19f38 - Browse repository at this point
Copy the full SHA 2c19f38View commit details -
Merge pull request #1072 from rspec/respond_to_checks_initialize_for_new
Support checking `initialize` when checking `respond_to(:new)`
Configuration menu - View commit details
-
Copy full SHA for e20fcac - Browse repository at this point
Copy the full SHA e20fcacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8947285 - Browse repository at this point
Copy the full SHA 8947285View commit details
Commits on Sep 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e3443a1 - Browse repository at this point
Copy the full SHA e3443a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06fca6b - Browse repository at this point
Copy the full SHA 06fca6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81b6039 - Browse repository at this point
Copy the full SHA 81b6039View commit details
Commits on Sep 20, 2018
-
Merge pull request #1073 from jkowens/3-8-maintenance
Only call to_hash when actual object does not respond to include?
Configuration menu - View commit details
-
Copy full SHA for 4e8af84 - Browse repository at this point
Copy the full SHA 4e8af84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66a9fa4 - Browse repository at this point
Copy the full SHA 66a9fa4View commit details -
Merge pull request #1077 from rspec/update_ffi
Prevent Github vulnerability warning
Configuration menu - View commit details
-
Copy full SHA for 5c37bd9 - Browse repository at this point
Copy the full SHA 5c37bd9View commit details -
Handle unexpected KeyError / IndexError
If when looking up match results, a match result for a matcher is empty, we will get a KeyError, this is now converted into an ArgumentError with explanation.
Configuration menu - View commit details
-
Copy full SHA for 7751bc5 - Browse repository at this point
Copy the full SHA 7751bc5View commit details -
Merge pull request #1076 from rspec/prevent_unexpected_index_error
Handle unexpected Index / KeyError when looking up match results
Configuration menu - View commit details
-
Copy full SHA for 005757e - Browse repository at this point
Copy the full SHA 005757eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68b89c1 - Browse repository at this point
Copy the full SHA 68b89c1View commit details
Commits on Sep 21, 2018
-
Merge pull request #2566 from rspec/update-travis-build-scripts-2018-…
…09-19-for-master Updates from rspec-dev (2018-09-19)
Configuration menu - View commit details
-
Copy full SHA for 73e7870 - Browse repository at this point
Copy the full SHA 73e7870View commit details -
Merge pull request #1075 from rspec/update-travis-build-scripts-2018-…
…09-19-for-master Updates from rspec-dev (2018-09-19)
Configuration menu - View commit details
-
Copy full SHA for 88c4382 - Browse repository at this point
Copy the full SHA 88c4382View commit details
Commits on Oct 3, 2018
-
Single error when
--require
'd files fail to load (#2568)* Single error when `--require`'d files fail to load When there's an error loading files specified via the `--require` flag, typically `rails_helper.rb` or `spec_helper.rb`, it's very common that most of the spec files won't load either since they depend on the helper file being loaded. In these situations, one gets hundreds of errors printed to the screen. That can be quite intimidating and contributes to hide the real culprit, which is the load error in the helper.
Configuration menu - View commit details
-
Copy full SHA for d730c02 - Browse repository at this point
Copy the full SHA d730c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28ceaf2 - Browse repository at this point
Copy the full SHA 28ceaf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f8abda - Browse repository at this point
Copy the full SHA 4f8abdaView commit details
Commits on Oct 9, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0025231 - Browse repository at this point
Copy the full SHA 0025231View commit details
Commits on Oct 13, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 58f3821 - Browse repository at this point
Copy the full SHA 58f3821View commit details
Commits on Oct 18, 2018
-
Clarify @tag (cuke style) functionality (#2573)
With the previous documentation, it was unclear if the passed in tag using the `@` (cucumber style tagging) would be ignored similar to doing `~tag` (for `--tag @tag`), or if it would "ignore" the `@` when building the configuration option (`@tag` changes to `:tag`). Looking at the implementation in `lib/rspec/core/option_parser.rb` confirms that it is the latter, so the wording has been updated to make that more clear.
Configuration menu - View commit details
-
Copy full SHA for 7288702 - Browse repository at this point
Copy the full SHA 7288702View commit details
Commits on Oct 19, 2018
-
Add project metadata to the gemspec (#2574)
* Add project metadata to the gemspec * Use the official rspec.info documentation page * Use tagged changelog
Configuration menu - View commit details
-
Copy full SHA for 9d1d0d6 - Browse repository at this point
Copy the full SHA 9d1d0d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5cebd7 - Browse repository at this point
Copy the full SHA c5cebd7View commit details -
Merge pull request #1081 from orien/project-metadata
Add project metadata to the gemspec
Configuration menu - View commit details
-
Copy full SHA for 5229572 - Browse repository at this point
Copy the full SHA 5229572View commit details
Commits on Oct 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e5e4ad7 - Browse repository at this point
Copy the full SHA e5e4ad7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6b9eb - Browse repository at this point
Copy the full SHA 3b6b9ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b98d0c - Browse repository at this point
Copy the full SHA 7b98d0cView commit details
Commits on Nov 13, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4a952a8 - Browse repository at this point
Copy the full SHA 4a952a8View commit details
Commits on Nov 14, 2018
-
Configuration menu - View commit details
-
Copy full SHA for ea41bcd - Browse repository at this point
Copy the full SHA ea41bcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd07682 - Browse repository at this point
Copy the full SHA cd07682View commit details
Commits on Nov 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 4fba098 - Browse repository at this point
Copy the full SHA 4fba098View commit details
Commits on Nov 16, 2018
-
Handle RSpec description with japanese char in CP932 encoded files
When the user create a test with CP932 encoding and japanese chars RSpec fail to properly display characters or crash with the error: > Encoding::CompatibilityError: incompatible character encodings: Windows-31J and UTF-8 Fix: - rspec/rspec-core#2570 - rspec/rspec-core#2543 For Ruby 1.8.7 We are following the same behavior as for rspec-support https://github.com/rspec/rspec-support/blob/9940a8656071655b807f772f36101b4d27f1b67d/lib/rspec/support/spec/string_matcher.rb#L8
Configuration menu - View commit details
-
Copy full SHA for 05611c5 - Browse repository at this point
Copy the full SHA 05611c5View commit details
Commits on Nov 17, 2018
-
Enforce UTF-8 locale when running tests in appveyor
chcp 65001 mean Code Page Number and 65001 is UTF-8. So by doing this change we modify the code page to UTF-8 for the commande that follows. See documentation: https://ss64.com/nt/chcp.html See related issue: appveyor/ci#2107
Configuration menu - View commit details
-
Copy full SHA for 0c9f05f - Browse repository at this point
Copy the full SHA 0c9f05fView commit details -
choose encoded_description method content code earlier
Instead of runtime see https://github.com/rspec/rspec-core/pull/2575/files#r227002134
Configuration menu - View commit details
-
Copy full SHA for 8372e5c - Browse repository at this point
Copy the full SHA 8372e5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25f666a - Browse repository at this point
Copy the full SHA 25f666aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa47f4a - Browse repository at this point
Copy the full SHA fa47f4aView commit details -
Merge pull request #2580 from benoittgt/update-travis-build-scripts-2…
…018-11-17-for-master Updated travis build scripts (from rspec-dev)
Configuration menu - View commit details
-
Copy full SHA for 5df0e1e - Browse repository at this point
Copy the full SHA 5df0e1eView commit details -
Merge pull request #1085 from benoittgt/update-travis-build-scripts-2…
…018-11-17-for-master Updated travis build scripts (from rspec-dev)
Configuration menu - View commit details
-
Copy full SHA for fd3ccee - Browse repository at this point
Copy the full SHA fd3cceeView commit details
Commits on Nov 23, 2018
-
Fix nested
all
repeated failure message (#1086)`RSpec::Matchers::BuiltIn::All` keeps track of which objects failed at which index of the actual value in a `@failed_objects` hash. The matcher considers a match successful if `@failed_objects` is empty. When the matcher is composed inside another matcher, the matcher gets cloned before matching against each item in the actual collection. The `@failed_objects` hash doesn't itself get cloned, resulting in each cloned matcher having a reference to the same hash. This means that once a matcher (or one of its clones) fails – populating `@failed_objects` –, each of its clones will fail matching regardless of whether it matched or not, as each clone's `@failed_objects` reference is not empty. This leads to behavior like the following, where we see the first failure (expecting `false` to be `true`) repeated twice. ``` expect([[true], [false]]).to all(all(be(false))) RSpec::Expectations::ExpectationNotMetError: expected [[true], [false]] to all all equal false object at index 0 failed to match: expected [true] to all equal false object at index 0 failed to match: expected false got true object at index 1 failed to match: expected [false] to all equal false object at index 0 failed to match: expected false got true ``` The solution here is to clone the `@failed_objects` hash when the matcher itself is cloned. So long as the matcher itself is cloned immediately after construction (while `@failed_objects` is empty) – which is what actually happens – we avoid this bug. Alternative solutions include: * calling `@failed_objects.clear` at the start of each `matches?` call * lazily defining `@failed_objects` (i.e. outside of the constructor) so that when the matcher is cloned, `@failed_objects` isn't defined yet and so cannot have shared references to it However, the pattern already exists where, when the matcher is cloned, its 'submatcher' (composed matcher) is cloned. Cloning `@failed_objects` at this time follows the same pattern.
Configuration menu - View commit details
-
Copy full SHA for 2089a1e - Browse repository at this point
Copy the full SHA 2089a1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 499d7f3 - Browse repository at this point
Copy the full SHA 499d7f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c04c21f - Browse repository at this point
Copy the full SHA c04c21fView commit details
Commits on Nov 27, 2018
-
Merge pull request #2575 from benoittgt/deal_with_encoding_error
Handle RSpec description with japanese char in CP932 encoded files
Configuration menu - View commit details
-
Copy full SHA for 6c5628f - Browse repository at this point
Copy the full SHA 6c5628fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f506d69 - Browse repository at this point
Copy the full SHA f506d69View commit details
Commits on Nov 28, 2018
-
Add chained matchers example to raise_error (#1087)
* Add chained matchers example to raise_error Being new to rspec, it wasn't clear that I could pass composed matchers to 'raise_error'. This commit adds an example of a chained matcher being passed to 'raise_error'. This is useful for testing custom attributes on an error while still satisfying the one 'expect' statement per test case enforced by rubocop-rspec. See rubocop/rubocop-rspec#379 for more details.
Configuration menu - View commit details
-
Copy full SHA for dc0ecfd - Browse repository at this point
Copy the full SHA dc0ecfdView commit details
Commits on Dec 10, 2018
-
Fixed warnings: lib/rspec/core/metadata.rb:172: warning: Object#=~ is…
… deprecated; it always returns nil (#2582)
Configuration menu - View commit details
-
Copy full SHA for 5e6171e - Browse repository at this point
Copy the full SHA 5e6171eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 595747f - Browse repository at this point
Copy the full SHA 595747fView commit details
Commits on Dec 21, 2018
-
Updates from rspec-dev (2018-12-21) (#2585)
* Updated travis build scripts (from rspec-dev) * Skip broken spec on windows
Configuration menu - View commit details
-
Copy full SHA for 726821d - Browse repository at this point
Copy the full SHA 726821dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d98ae7 - Browse repository at this point
Copy the full SHA 3d98ae7View commit details
Commits on Dec 30, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3471b7c - Browse repository at this point
Copy the full SHA 3471b7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a17d8a - Browse repository at this point
Copy the full SHA 6a17d8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc185ab - Browse repository at this point
Copy the full SHA dc185abView commit details
Commits on Dec 31, 2018
-
Configuration menu - View commit details
-
Copy full SHA for fb5aa28 - Browse repository at this point
Copy the full SHA fb5aa28View commit details
Commits on Jan 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 861355e - Browse repository at this point
Copy the full SHA 861355eView commit details
Commits on Jan 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for cc68276 - Browse repository at this point
Copy the full SHA cc68276View commit details -
Configuration menu - View commit details
-
Copy full SHA for 965be98 - Browse repository at this point
Copy the full SHA 965be98View commit details
Commits on Jan 8, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1859032 - Browse repository at this point
Copy the full SHA 1859032View commit details -
Configuration menu - View commit details
-
Copy full SHA for d598ecb - Browse repository at this point
Copy the full SHA d598ecbView commit details
Commits on Feb 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e4e10d9 - Browse repository at this point
Copy the full SHA e4e10d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a1cc94 - Browse repository at this point
Copy the full SHA 1a1cc94View commit details
Commits on Feb 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 11afda9 - Browse repository at this point
Copy the full SHA 11afda9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b925766 - Browse repository at this point
Copy the full SHA b925766View commit details
Commits on Feb 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for cea8727 - Browse repository at this point
Copy the full SHA cea8727View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb1b4ce - Browse repository at this point
Copy the full SHA cb1b4ceView commit details
Commits on Feb 8, 2019
-
Handle subject hash change after change matcher has run (#1100)
#1034 introduced a hash comparison in addition to an equality check. The change compared not only the objects themselves, but also their hashes which broke for poorly behaving Ruby objects. E.g. (using `rspec-rails`): it { expect { 'noop' }.not_to change { country.reload.cities } } By caching the hash immediately after the block has run we should be able to work around such examples.
Configuration menu - View commit details
-
Copy full SHA for 9b91877 - Browse repository at this point
Copy the full SHA 9b91877View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03af89d - Browse repository at this point
Copy the full SHA 03af89dView commit details
Commits on Mar 1, 2019
-
Add support for --example-matches
Add support for --example-matches / -E that allows matching examples with regex syntax, fixes #2584
Configuration menu - View commit details
-
Copy full SHA for ef17239 - Browse repository at this point
Copy the full SHA ef17239View commit details -
Configuration menu - View commit details
-
Copy full SHA for d048c36 - Browse repository at this point
Copy the full SHA d048c36View commit details
Commits on Mar 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 6453153 - Browse repository at this point
Copy the full SHA 6453153View commit details
Commits on Mar 4, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 74ad029 - Browse repository at this point
Copy the full SHA 74ad029View commit details
Commits on Mar 7, 2019
-
Did you mean functionality. (#2601)
* Add did_you_mean functionality to rspec-core. The functionality provides for suggestions when a person enters an rspec spec/some_file_path command with typographical errors. If there are errors, then the code at lib/rspec/core/configuration.rb:2037 searches for suggestions. If useful suggestions are found they are added to the reported exception at lib/rspec/core/configuration.rb:2038. The suggestions are done by the ::DidYouMean::SpellChecker API where available.
Configuration menu - View commit details
-
Copy full SHA for cbd6d47 - Browse repository at this point
Copy the full SHA cbd6d47View commit details -
Configuration menu - View commit details
-
Copy full SHA for f17a414 - Browse repository at this point
Copy the full SHA f17a414View commit details
Commits on Mar 24, 2019
-
Update aruba dependency (#2609)
* Depend on latest Aruba release * Aruba has deprecated `in_current_directory` fix that * Remove remaining use of in_current_dir * Replace use of clean_current_dir with setup_aruba * Remove use of deprecated #dirs method * Replace #remove_file with #remove * Replace #set_env with #set_environment_variable * Replace call to #run_simple with #run_command_and_stop * Remove custom fail-with-output step * Remove custom pass-with-output step * DRY up output checks by reintroducing all_output helper
Configuration menu - View commit details
-
Copy full SHA for 0b4c98d - Browse repository at this point
Copy the full SHA 0b4c98dView commit details
Commits on Apr 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4a29a4b - Browse repository at this point
Copy the full SHA 4a29a4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f66d0 - Browse repository at this point
Copy the full SHA 79f66d0View commit details
Commits on Apr 3, 2019
-
Added warning message for BasicObject with unsupported matchers (#1107)
BasicObject doesn't define certain Ruby methods matchers rely on, in this case issue an ArgumentError to better explain the error. * Added kindly failure message for rspec/rspec-expectations#1105 * raise ArgumentError instead of printing special failure message * added examples for following cases - actual object does not respond to #kind_of? method - actual object does not respond to #is_a? method * removed #error_message method and give the error message inline
Configuration menu - View commit details
-
Copy full SHA for 2d34748 - Browse repository at this point
Copy the full SHA 2d34748View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d630d1 - Browse repository at this point
Copy the full SHA 8d630d1View commit details
Commits on Apr 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 49fcbee - Browse repository at this point
Copy the full SHA 49fcbeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7727a07 - Browse repository at this point
Copy the full SHA 7727a07View commit details
Commits on Apr 21, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7a5c9f7 - Browse repository at this point
Copy the full SHA 7a5c9f7View commit details
Commits on May 3, 2019
-
"KindOf" matchers: Rescue
NoMethodError
instead ofrespond_to?
ch……eck (#1112) * "KindOf" matchers: Rescue `NoMethodError` instead of `respond_to?` check * "BeAnInstanceOf" matcher: Rescue `NoMethodError` inline * BeAKindOf matcher: improve performance & error message * BeAKindOf matcher: revert performance improvement * BeAKindOf matcher: remove #is_a? support
Configuration menu - View commit details
-
Copy full SHA for 856b8ab - Browse repository at this point
Copy the full SHA 856b8abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12bca28 - Browse repository at this point
Copy the full SHA 12bca28View commit details
Commits on May 14, 2019
-
Add a minimalist formatter (c/quickfix style output) (#2614)
* Add a minimalisr formatter This formatter outputs failures in a similar fashion to the C compiler — file:line:message — allowing straightforward integration with text editors like vim and without adding extra dependencies to the project (relying on the quickfix-window from vim or similar feature for other editors). One can configure his editor with the following line (vim) and start jumping between failures using the regular editor keybindings, without having to visually parse the output from rspec to find out the file and line number he want to reach: ```vim autocmd FileType ruby set makeprg=bundle\ exec\ rspec\ --format\ m ```
Configuration menu - View commit details
-
Copy full SHA for 777d85f - Browse repository at this point
Copy the full SHA 777d85fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 589971d - Browse repository at this point
Copy the full SHA 589971dView commit details
Commits on May 15, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b5b0967 - Browse repository at this point
Copy the full SHA b5b0967View commit details
Commits on May 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4b92e78 - Browse repository at this point
Copy the full SHA 4b92e78View commit details -
Rename option for FailureList formatter to "failures"
The name was not matching case statement in formatters.rb and it is much simplier to have an argument with that name. Discussion: - https://github.com/rspec/rspec-core/pull/2624/files#r284776400
Configuration menu - View commit details
-
Copy full SHA for 63179c7 - Browse repository at this point
Copy the full SHA 63179c7View commit details -
Rename option for FailureList formatter to "failures" (#2625)
Rename option for FailureList formatter to "failures"
Configuration menu - View commit details
-
Copy full SHA for b4af5c7 - Browse repository at this point
Copy the full SHA b4af5c7View commit details
Commits on May 20, 2019
-
Deal with new ffi Ruby version requirement (#1115)
CI was failing for 1.9.2 and 1.9.3. This is due to ffi/ffi#683 Related: - ffi/ffi#699
Configuration menu - View commit details
-
Copy full SHA for 1044d4e - Browse repository at this point
Copy the full SHA 1044d4eView commit details
Commits on May 25, 2019
-
Fix documentation for nested described_class
Fixes #2627 Documentation for `described_class` was out of date, a change was made in early 3.0 in #1361, but was not reflected to the docs. Also, documentation for implicit `subject` was off, even though there is a feature describing how it behaves.
Configuration menu - View commit details
-
Copy full SHA for 861986d - Browse repository at this point
Copy the full SHA 861986dView commit details
Commits on May 27, 2019
-
Merge pull request #2629 from pirj/fix-described_class-in-nested-exam…
…ples-doc Fix documentation for nested described_class
Configuration menu - View commit details
-
Copy full SHA for d04d4de - Browse repository at this point
Copy the full SHA d04d4deView commit details
Commits on May 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0e3e8ed - Browse repository at this point
Copy the full SHA 0e3e8edView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed6cd8c - Browse repository at this point
Copy the full SHA ed6cd8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 276e38b - Browse repository at this point
Copy the full SHA 276e38bView commit details
Commits on May 29, 2019
-
Fix
define_derived_metadata
so that it supports cascades. (#2630)For example: ``` RSpec.configure do |c| c.define_derived_metadata(:elasticsearch) do |meta| meta[:vcr] = true end c.define_derived_metadata(:vcr) do |meta| meta[:retries] = 2 end end ``` With this configuration, an example or group tagged with `:elasticsearch` should get tagged with `:vcr` as well, which in turn should add `retries: 2` metadata to the example or group. Before this change, this did not work properly, because we did look to see if additional metadata blocks should apply after applying them once.
Configuration menu - View commit details
-
Copy full SHA for e0ecbaf - Browse repository at this point
Copy the full SHA e0ecbafView commit details
Commits on Jun 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 36fa69a - Browse repository at this point
Copy the full SHA 36fa69aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c408a2a - Browse repository at this point
Copy the full SHA c408a2aView commit details -
* Specify target Ruby version for RuboCop Even though the aim is to provide 1.8+ support, RuboCop of the bundled version only supports versions 2.1-2.5. This reduces the severity of the following offence: rspec-expectations.gemspec:30:29: C: Gemspec/RequiredRubyVersion: required_ruby_version (1.8, declared in rspec-expectations.gemspec) and TargetRubyVersion (2.5, declared in .rubocop.yml) should be equal. s.required_ruby_version = '>= 1.8.7' ^^^^^^^^^^ * Fix Style/Encoding offence * Set FrozenStringLiteralComment style to never `frozen_string_literal` is not used anywhere in the code, only adding the noise (~200 offenses) in the RuboCop check. * Fix Layout/EmptyLines offence * Fix Gemspec/OrderedDependencies offence * Fix percent literal related offences Specifically: - Style/PercentLiteralDelimiters - Style/UnneededPercentQ - Style/BarePercentLiterals And find common ground for the usages to minimize the change. * Disable Gemfile cops They doesn't seem to cut it in a Gemfile with conditionals * Fix Layout/SpaceAfterComma offences * Disable Lint/AmbiguousRegexpLiteral cop for step definitions * Fix Style/SpaceInsideBlockBraces offences Use default styles for Style/SpaceInsideBlockBraces * Fix Layout/TrailingBlankLines offences * Disable Style/BlockComments cop There's a really long explanation in the benchmark code. The diff size is intolerable. * Exclude Gemfile from Security/Eval check * Disable Layout/AlignParameters locally Even though this cop is coming from rspec-dev's default RuboCop settings, in this repository it's kind of cumbersome to enforce either of the styles the cop can enforce. * Fix Style/ColonMethodCall offences * Exclude specs from Metrics/ModuleLength check * Fix Layout/SpaceInsideHashLiteralBraces offences Using the default styles reduces the total change of the code required, since with defaults the number of offences is the lowest. | `space` (default) | `no_space` | `compact` ------------------- | ----------------- | ---------- | --------- `no_space` (default) | 92 | 126 | 92 `space` | 105 | 139 | 105 * Exclude specs from Metrics/BlockLength check * Disable Style/WordArray cop * Fix Layout/SpaceBeforeBlockBraces offences * Fix Style/AsciiComments offence Looks even more furious now. * Disable Lint/HandleExceptions for benchmarks * Disable Lint/HandleExceptions in the code This handling is there to avoid odd messages when this example fails * Disable Style/Semicolon Sometimes it's more indicative. It is very tempting to simplify expect { x = 0 expect { x += 1; exit }.to change { x }.and cause_call_stack_jump }.to raise_error(/no match results, [\.\w\s]+ declare `expects_call_stack_jump\?`/) down to expect { expect { exit }.to change { }.and cause_call_stack_jump }.to raise_error(/no match results, [\.\w\s]+ declare `expects_call_stack_jump\?`/) however, maybe I just don't see how `x` facilitates the understanding how a call stack jump is detected in a composable matcher. * Exclude specs and benchmarks from Style/SingleLineMethods check * Fix Style/NumericLiterals offences * Exclude specs and benchmarks from Style/RescueModifier check * Fix Performance/StringReplacement offence * Fix Style/LineEndConcatenation offences * Auto-correct Lint/UnusedBlockArgument offences I'm not particularly sure about this commit. Probably some of the examples are there specifically to indicate a bad code and how RSpec is able to handle it anyway. * Fix Style/RedundantSelf offences * Fix Style/EvenOdd offence * Exclude specs from Style/MultilineBlockChain check * Fix some Lint/IneffectiveAccessModifier offences * Fix Style/MixinGrouping offence * Exclude specs from Style/ClassAndModuleChildren check I tried fixing this across all specs, since it also triggers Metrics/ModuleLength cop, but it turns out that this style is specifically useful if a number of constants are used in the tests, e.g. it's possible to specify `RSpec::Expectations::MultipleExpectationsNotMetError` just by the class name, leaving out the namespace. * Exclude specs from Lint/AmbiguousBlockAssociation check The following notation is quite widespread expect { string << "c" }.to change { string } and it would look extremely odd being "fixed": expect { string << "c" }.to(change { string }) Even though sometimes it's hard to figure out what is the receiver of the message with composable matchers, the matchers are built the way it doesn't really matter. * Exclude specs from Style/BracesAroundHashParameters check This style makes total sense in specs, e.g.: expect({:a => 1, :b => 2}).to include(:a => 1, :b => 2) indicates that `actual` is a hash. * Exclude specs from Layout/SpaceInsideParens check This style looks quite nicely: by( a_value_within(0.1).of(0.5) ) especially when chained with another matcher down the lines. An example with `compose` in spec/rspec/matchers/built_in/compound_spec.rb:56:16 expect { w += 1; x += 2; y += 3; z += 4 }.to( combine( change { w }.to(1), combine( change { x }.to(2), combine( change { y }.to(3), change { z }.to(4) ) ) ) ) is there for a single reason - lack of varargs in earlier, but still supported Ruby versions. * Exclude specific file from Style/EvalWithLocation check The `__LINE__` would be completely useless for evals in this spec. * Fix Layout/SpaceInsideArrayLiteralBrackets offences One of the "offences" that went into the exclude file is there to visually demonstrate what is in the `actual`. * Disable Style/GlobalVars inline I tried to keep off of in-code disabling of the cops, but since this specific line is a hack, probably it makes sense to highlight it as such. * Disable Gemspec/RequiredRubyVersion Minimum Targeted Ruby version of used RuboCop is 2.1, while even it was dropped in rubocop/rubocop@a707c23 2.2 is past the support phase, and so will be 2.3 by the end of March 2019. * Fix Layout/SpaceInsideReferenceBrackets offence * Fix Style/Attr offence * Locally disable Style/RedundantException offences As per https://github.com/rspec/rspec-expectations/pull/1104/files#r263923497 discussion it's better to be explicit, and to suppress the cop * Fix Layout/EmptyLinesAroundModuleBody offences * Fix Style/NumericLiteralPrefix offences * Fix Layout/SpaceAroundEqualsInParameterDefault offences * Fix Layout/EmptyLinesAroundClassBody offence * Fix Style/EmptyLiteral offences * Fix Lint/UnusedMethodArgument offences * Fix Performance/RedundantBlockCall offence * Explicitly denote that the code is unreachable It's quite obvious anyway from looking at the code, though it is a balancing example and deserves to remain as is. However, instead of excluding this file in .rubocop.yml, it makes sense to additionally denote that the code is unreachable in the code itself. * Locally disable Lint/RescueException offence Discussion: https://github.com/rspec/rspec-expectations/pull/1104/files#r263990646 * Fix Style/MethodCallWithoutArgsParentheses offences Also, this changes reverts fdd9ef3, for which the warnings should not appear anymore (see https://bugs.ruby-lang.org/issues/10661). * Fix Layout/IndentationConsistency offence * Exclude ignored paths from RuboCop checks Aruba creates some tmp files that don't pass the checks. Also, git ignored bin folder (of an unknown origin, probably part of how rspec-dev checks out and initializes repositories) contains a number of offences. bin/bundle:34:25: C: Style/PerlBackrefs: Avoid the use of Perl-style backrefs. ^^ bin/bundle:89:187: C: Metrics/LineLength: Line is too long. [190/186] tmp/aruba/rspec_expectations_spec.rb:48:4: C: Layout/TrailingBlankLines: Final newline missing. It doesn't make sense to fix them, since those files are not meant to be committable. * Add RuboCop check to default rake task * Fix typos and RuboCop reference in docs * Add a check for RuboCop binstub * Tell RuboCop to check all files Previously CI check was only checking `lib` directory * Locally disable Layout/EmptyLinesAroundArguments It is a bug in RuboCop 0.52.1, fixed in 0.65.0 Adding a local disabling, since newer RuboCop will report an unnecessary disabling, and it could be spotted and removed. * Simplify regression test The test was a bit confusing. The point of it is that if a `matches?` is defined, and `===` is not defined, it should not be used as an argument matcher. rspec/rspec-expectations#1104 (comment)
Configuration menu - View commit details
-
Copy full SHA for 23c11fc - Browse repository at this point
Copy the full SHA 23c11fcView commit details
Commits on Jun 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 721be32 - Browse repository at this point
Copy the full SHA 721be32View commit details
Commits on Jun 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 15d26fb - Browse repository at this point
Copy the full SHA 15d26fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3950e4f - Browse repository at this point
Copy the full SHA 3950e4fView commit details
Commits on Jun 12, 2019
-
Merge pull request #2632 from rspec/add-isolated-env-for-rake
Add support for running Rake task in a clean environment
Configuration menu - View commit details
-
Copy full SHA for 2800fe1 - Browse repository at this point
Copy the full SHA 2800fe1View commit details
Commits on Jun 13, 2019
-
Assign
@metadata
before we apply derived metadata hooks.Since derived metadata hooks can contain arbitrary user code, the logic in them can trigger something that tries to access and use `Example#metadata` or `ExampleGroup#metadata` before initialization is done. It avoids problems if we allow `@metadata` to be assigned before we run the hooks.
Configuration menu - View commit details
-
Copy full SHA for 801230c - Browse repository at this point
Copy the full SHA 801230cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c83f3c - Browse repository at this point
Copy the full SHA 4c83f3cView commit details
Commits on Jun 21, 2019
-
Merge pull request #2635 from rspec/myron/fix-shared-context-metadata…
…-bug Assign `@metadata` before we apply derived metadata hooks.
Configuration menu - View commit details
-
Copy full SHA for 2a62a64 - Browse repository at this point
Copy the full SHA 2a62a64View commit details -
Update Aruba to version 0.14.10 (#1118)
- Bump dependency version - Fix deprecations - Limit version of transitive dependency on contracts gem on old Rubies
Configuration menu - View commit details
-
Copy full SHA for b1d15ac - Browse repository at this point
Copy the full SHA b1d15acView commit details
Commits on Jun 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a33901b - Browse repository at this point
Copy the full SHA a33901bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 466fb75 - Browse repository at this point
Copy the full SHA 466fb75View commit details
Commits on Jun 25, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 45e5070 - Browse repository at this point
Copy the full SHA 45e5070View commit details
Commits on Jun 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e1c0fb5 - Browse repository at this point
Copy the full SHA e1c0fb5View commit details
Commits on Jul 8, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8e3ce24 - Browse repository at this point
Copy the full SHA 8e3ce24View commit details -
Merge pull request #2646 from rspec/update-travis-build-scripts-2019-…
…07-08-for-master Updates from rspec-dev (2019-07-08)
Configuration menu - View commit details
-
Copy full SHA for 77dbc84 - Browse repository at this point
Copy the full SHA 77dbc84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51ba183 - Browse repository at this point
Copy the full SHA 51ba183View commit details
Commits on Jul 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bf0c3a7 - Browse repository at this point
Copy the full SHA bf0c3a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75f5cc9 - Browse repository at this point
Copy the full SHA 75f5cc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06370e3 - Browse repository at this point
Copy the full SHA 06370e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for acc65d9 - Browse repository at this point
Copy the full SHA acc65d9View commit details
Commits on Aug 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1fdfe8c - Browse repository at this point
Copy the full SHA 1fdfe8cView commit details -
Merge pull request #2651 from rspec/update-travis-build-scripts-2019-…
…07-24-for-master Updates from rspec-dev (2019-07-24)
Configuration menu - View commit details
-
Copy full SHA for 4ab6822 - Browse repository at this point
Copy the full SHA 4ab6822View commit details
Commits on Aug 28, 2019
-
Indent messages correctly in DocumentationFormatter.
When using `example.reporter.message`, it would be nice if the messages were indented correctly, so that it's clear it relates to the current spec being executed.
Configuration menu - View commit details
-
Copy full SHA for d65f0fa - Browse repository at this point
Copy the full SHA d65f0faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fe1aef - Browse repository at this point
Copy the full SHA 7fe1aefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cef598 - Browse repository at this point
Copy the full SHA 5cef598View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b62a68 - Browse repository at this point
Copy the full SHA 9b62a68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94c8b50 - Browse repository at this point
Copy the full SHA 94c8b50View commit details -
Configuration menu - View commit details
-
Copy full SHA for a69da24 - Browse repository at this point
Copy the full SHA a69da24View commit details
Commits on Sep 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for acd7f02 - Browse repository at this point
Copy the full SHA acd7f02View commit details
Commits on Sep 3, 2019
-
Merge pull request #2658 from rspec/make-specs-config-proof
Force --no-profile for output dependant specs
Configuration menu - View commit details
-
Copy full SHA for 0fcf18c - Browse repository at this point
Copy the full SHA 0fcf18cView commit details -
Add support for not swallowing expectation errors when matching negat…
…ed blocks (#1130) * Add support for not swallowing expectation errors * Add changelog for #1130
Configuration menu - View commit details
-
Copy full SHA for 5e0cf19 - Browse repository at this point
Copy the full SHA 5e0cf19View commit details
Commits on Sep 9, 2019
-
Configuration menu - View commit details
-
Copy full SHA for fc242aa - Browse repository at this point
Copy the full SHA fc242aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2171dc - Browse repository at this point
Copy the full SHA e2171dcView commit details
Commits on Sep 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a99d6d5 - Browse repository at this point
Copy the full SHA a99d6d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0022831 - Browse repository at this point
Copy the full SHA 0022831View commit details -
Merge pull request #2649 from ioquatix/patch-1
Indent messages correctly in DocumentationFormatter.
Configuration menu - View commit details
-
Copy full SHA for e570a0c - Browse repository at this point
Copy the full SHA e570a0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25b10ef - Browse repository at this point
Copy the full SHA 25b10efView commit details -
Improve
change
mather detection of objects that have changed. (#1132)* Add instance variables to changes detected * Add benchmark for large objects
Configuration menu - View commit details
-
Copy full SHA for 443212a - Browse repository at this point
Copy the full SHA 443212aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a77e20 - Browse repository at this point
Copy the full SHA 0a77e20View commit details
Commits on Sep 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0058c8e - Browse repository at this point
Copy the full SHA 0058c8eView commit details
Commits on Sep 12, 2019
-
Merge pull request #2661 from rspec/update-hook-order-docs
Update docs for hooks specifying order of before/around/after
Configuration menu - View commit details
-
Copy full SHA for 8a287bd - Browse repository at this point
Copy the full SHA 8a287bdView commit details
Commits on Sep 14, 2019
-
Prevent block-only matchers from being used with value expectation ta…
…rget https://blog.rubystyle.guide/rspec/2019/07/17/rspec-implicit-block-syntax.html https://rspec.rubystyle.guide/#implicit-block-expectations Spec changes are due to: matcher.matches?(invalid_value) doesn't work with block-only matchers, as no block is passed in, and it fails with a message: 1) RSpec::Matchers::BuiltIn::Change behaves like an RSpec block-only matcher uses the `ObjectFormatter` for `failure_message` Failure/Error: expect(message).to include("detailed inspect") expected "expected `@k` to have changed, but was not given a block" to include "detailed inspect" The redundant (due to existing check in ExpectationTarget) `Proc === @event_proc` checks could not be removed safely as well, since @actual_after is not initialized yet when we haven't executed the block: RuntimeError: Warnings were generated: rspec-dev/repos/rspec-expectations/lib/rspec/matchers/built_in/change.rb:407: warning: instance variable @actual_after not initialized Ruby 1.8-specific workarounds: multiple values for a block parameter (0 for 1) If a block expects an argument, it ought to be provided an argument in 1.8
Configuration menu - View commit details
-
Copy full SHA for 771da6d - Browse repository at this point
Copy the full SHA 771da6dView commit details -
Merge pull request #1125 from pirj/prevent-block-matchers-from-being-…
…used-with-value-expectation-target Prevent block-only matchers from being used with value expectation target
Configuration menu - View commit details
-
Copy full SHA for 110243e - Browse repository at this point
Copy the full SHA 110243eView commit details
Commits on Sep 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4310cb9 - Browse repository at this point
Copy the full SHA 4310cb9View commit details
Commits on Sep 20, 2019
-
Notice when object implement inspect but == is different (#1126)
* Notice when object implements identical `#inspect` but == returns false In a few cases the objects under test implement identical `inspect` output but the `eq` matcher will see a difference when doing `==`. This can lead to misleading output like this: ``` Failures: 1) Foo confuses users with an empty diff Failure/Error: Foo.something(Foo.new) #<Foo (class)> received :something with unexpected arguments expected: ("foobar") got: ("foobar") Diff: # ./spec/foo_spec.rb:13:in `block (2 levels) in <top (required)>' ``` This change adds a notice to help to understand this failed expectation. Fix: rspec/rspec-support#274
Configuration menu - View commit details
-
Copy full SHA for b37f5ab - Browse repository at this point
Copy the full SHA b37f5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f0cbb2 - Browse repository at this point
Copy the full SHA 2f0cbb2View commit details
Commits on Sep 25, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b64d67b - Browse repository at this point
Copy the full SHA b64d67bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc0bcb5 - Browse repository at this point
Copy the full SHA fc0bcb5View commit details -
Merge pull request #2664 from rspec/fix-build-by-pinning-minitest
Pin minitest on older Rubies
Configuration menu - View commit details
-
Copy full SHA for b2df62e - Browse repository at this point
Copy the full SHA b2df62eView commit details
Commits on Oct 3, 2019
-
Configuration menu - View commit details
-
Copy full SHA for db05df7 - Browse repository at this point
Copy the full SHA db05df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d92de42 - Browse repository at this point
Copy the full SHA d92de42View commit details -
Configuration menu - View commit details
-
Copy full SHA for b98faa3 - Browse repository at this point
Copy the full SHA b98faa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffdf784 - Browse repository at this point
Copy the full SHA ffdf784View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f1d75f - Browse repository at this point
Copy the full SHA 0f1d75fView commit details